Page 1 of 1

Im a dumbass, I need help

PostPosted: Mon Nov 21, 2005 3:44 am
by Randum Idoit
Okay, Okay, this is really dumb, but I need help on getting my little guy to move.

So I got to the keydown event, pressed the up key, clicked add action, now im lost. This is embarrasing and probably dumb, but I really would like help on this. :oops:

PostPosted: Mon Nov 21, 2005 6:25 pm
by makslane
Add a "Move To" action and:

- set a positive x value to move right
- set a negative x value to move left
- set a positive y value to move down
- set a negative y value to move up

Relative to "Event Actor"
Velocty: 1000

PostPosted: Mon Nov 21, 2005 10:37 pm
by Randum Idoit
While I have this topic, I need one more thing.

How do I the background actually in the back. Whenever I move the guy I made just goes behind the background.

PostPosted: Mon Nov 21, 2005 11:25 pm
by willg101
Make the Z-Depth of your background "0".

PostPosted: Tue Nov 22, 2005 12:06 am
by Randum Idoit
willg101 wrote:Make the Z-Depth of your background "0".


Thanks, I'll try not to ask anyore questions for a while now... :p

PostPosted: Tue Nov 22, 2005 1:31 am
by willg101
Don't worry about it! That's what we're here for!

PostPosted: Tue Nov 22, 2005 11:48 pm
by Randum Idoit
Well since you put it that way...


Okay, im looking to make a bullet move. I have the bullet created once I press spacebar, but it doesn't move. All I need is how to make it move though, I know what to do for the collision.

PostPosted: Wed Nov 23, 2005 1:18 am
by willg101
Do event > key down > spacebar > script editor
Code: Select all
xvelocity=z;

where z equals how fast the bullet moves, positves numbers move right, negative numbers move left.

PostPosted: Wed Nov 23, 2005 1:54 am
by Randum Idoit
Now, do I do this code for the bullet or the guy that shoots the bullet? Im guessing the bullet.

Edit:I got it, thanks for all of your help.

PostPosted: Wed Nov 23, 2005 12:46 pm
by makslane
Move the bullet in the "Create Actor" event.
So, when your player create new bullets, they will move.