The Gang Garrison 2 Forum
May 26, 2013, 12:25:11 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Chat with us on IRC: http://ganggarrison.com/irc.html
Server: irc.esper.net, Channel: #gg2
 
   Home   Help Search Login Register  
Poll
Question: NextGen
Thanks to Pyschopath, NextGen owes it's future existance to him. - 0 (0%)
Release Date: Unknown - 0 (0%)
Total Voters: 0

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 »
  Print  
Author Topic: BLM - NextGen  (Read 86303 times)
Rock
Hero Member
*****
Offline Offline

Posts: 1836


Hello? Again?


« Reply #210 on: June 07, 2010, 04:20:06 pm »

Yep

thought so
Logged

New game much? 2D platforming stealth much?
Dusty
Hero Member
*****
Offline Offline

Posts: 10664


Dust in a box under a table


« Reply #211 on: June 08, 2010, 06:15:54 pm »

you can knock shit down with the gravity gun.
woot.
Logged

Dusty
Hero Member
*****
Offline Offline

Posts: 10664


Dust in a box under a table


« Reply #212 on: June 08, 2010, 06:46:44 pm »

i can't get the gravity gun to switch to the physgun.
however i can get the physgun to switch to the gravity gun
and its the same code, except for the object it switches to
Logged

NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #213 on: June 08, 2010, 06:48:05 pm »

i can't get the gravity gun to switch to the physgun.
however i can get the physgun to switch to the gravity gun
and its the same code, except for the object it switches to
game maker is in sequential order, so you might have to look out for that.

How are you doing on the dragging? imo it would be a better idea to create an object (it might even be invisible) that the boxes and stuff gravitate towards
Logged



[im
NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #214 on: June 08, 2010, 06:49:45 pm »

make sure that it isn't


if gravity gun = true
{
phsygun
}
if phsygun = true
{
gravity gun
}

make sure it's


if gravity gun = true
{
phsygun
break
}
if phsygun = true
{
gravity gun
break
}
Logged



[im
Dusty
Hero Member
*****
Offline Offline

Posts: 10664


Dust in a box under a table


« Reply #215 on: June 08, 2010, 06:58:25 pm »

i can't get the gravity gun to switch to the physgun.
however i can get the physgun to switch to the gravity gun
and its the same code, except for the object it switches to
game maker is in sequential order, so you might have to look out for that.

How are you doing on the dragging? imo it would be a better idea to create an object (it might even be invisible) that the boxes and stuff gravitate towards
draging? you mean picking things up?
except for some glitches (you can put objects in yourself), its done.

also the code for the gravity gun switch (temporary 'till i can find a better solution and i know its on Q, that's not permanent either)
Code:
if(keyboard_check_pressed(ord('Q'))){
    instance_create(x,y,PhysicsGunO)
    with(pickID){
        pickedUp = 0
    }
    instance_destroy()
    }
compared to the Physics Gun switch:
if(keyboard_check_pressed(ord('Q'))){
    instance_create(x,y,GravityGunO)
    with(pickID){
        pickedUp = 0
    }
    instance_destroy()
    }
Logged

NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #216 on: June 08, 2010, 06:59:54 pm »

why don't you change it to an actual event instead of step or whatever?
Logged



[im
Dusty
Hero Member
*****
Offline Offline

Posts: 10664


Dust in a box under a table


« Reply #217 on: June 08, 2010, 07:04:24 pm »

why don't you change it to an actual event instead of step or whatever?
hm. i'll try that.
but i'm not expecting it to work.
yeah that didn't work.
« Last Edit: June 08, 2010, 07:04:58 pm by ]GS[Galaxy Man :BR:Blu Dragon » Logged

NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #218 on: June 08, 2010, 07:06:51 pm »

This kind of shit usually only happens when the game still thinks you're still pressing the same button

maybe something is interfering with the step event I dunno tell me what events you have?
Logged



[im
Dusty
Hero Member
*****
Offline Offline

Posts: 10664


Dust in a box under a table


« Reply #219 on: June 08, 2010, 07:15:04 pm »

This kind of shit usually only happens when the game still thinks you're still pressing the same button

maybe something is interfering with the step event I dunno tell me what events you have?
Code: (Grav Step)
x= PlayerO.x+(xoffset*image_yscale)
y= PlayerO.y+yoffset
image_angle = point_direction(x,y,mouse_x,mouse_y)
if(keyboard_check_pressed(ord('Q'))){
instance_create(x,y,PhysGunO)
    with(pickID){
        pickedUp = 0
    }
    instance_destroy()
    }
Code: (Phys Step)
x= PlayerO.x+(xoffset*image_yscale)
y= PlayerO.y+yoffset
image_angle = point_direction(x,y,mouse_x,mouse_y)
if(keyboard_check_pressed(ord('Q'))){
    instance_create(x,y,GravityGunO)
    with(pickID){
        pickedUp = 0
    }
    instance_destroy()
    }
Logged

NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #220 on: June 08, 2010, 07:19:04 pm »

Put them both in the begin step so that hopefully they're done in order
Logged



[im
Dusty
Hero Member
*****
Offline Offline

Posts: 10664


Dust in a box under a table


« Reply #221 on: June 08, 2010, 07:20:38 pm »

Put them both in the begin step so that hopefully they're done in order
nope, the gravity gun is still sticking.
Logged

NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #222 on: June 08, 2010, 07:22:00 pm »

Hmmmmm

give me the object information thing
Logged



[im
Dusty
Hero Member
*****
Offline Offline

Posts: 10664


Dust in a box under a table


« Reply #223 on: June 08, 2010, 07:24:07 pm »

Logged

NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #224 on: June 08, 2010, 07:28:34 pm »

Perhaps it just isn't being drawn, put the draw event into both events

even if you just have to have a single draw_sprite funtion
Logged



[im
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.289 seconds with 20 queries.