make a sprite move a few pixels

Get help using Construct 2

Post » Tue Oct 29, 2013 2:24 am

Is there an event to make a sprite me a few pixels..only one time?

Keyboard-press Down...sprite move y 10 pixels??

anything like this
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Tue Oct 29, 2013 2:35 am

If you want it to jump there, just "On Key Pressed" set Sprite Y to Sprite.Y+10. Remember to only do this on trigger events and not continuous (ie, don't do it on "if key is down" but only on "on key pressed") or it will go on more than you want.

If you want it to slide you'll need a little more, so let me know with @C-7 if you want me to show how to do it smoothly.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Tue Oct 29, 2013 5:38 am

thanks that worked...is there a way to have a combination of buttons be assigned for the keyboard....like down and z for example...?
B
9
S
2
Posts: 272
Reputation: 1,632


Return to How do I....?

Who is online

Users browsing this forum: ST314 and 33 guests