Set custom speed ?

Get help using Construct 2

Post » Thu Jan 30, 2014 3:28 pm

Hello,

I'm sorry for the strange title.

I'm making a space game and I'm using custom movement with the ship.
I've found that when the ship is using bound to layout and the player keeps holding left/right even when at the end of layout, the speed still increases ... So I've made something else to try but it didn't work either:

I want the speed to be zero so he can go to left right away not to wait till his speed decreases .....

Thanks in adv.

Cheers,
Hady Hayman (IamHadzy)
B
25
S
8
G
2
Posts: 231
Reputation: 3,068

Post » Thu Jan 30, 2014 3:34 pm

Don't use 160, create a variable to hold that number like speed=160

If spr_ship X < 51 AND Left Arrow is down set speed = 0

Something like that?

B
100
S
32
G
11
Posts: 1,552
Reputation: 21,622

Post » Thu Jan 30, 2014 11:21 pm

Thanks @ArcadEd it worked. However, I'm unsatisfied with the result of the player going right then he tries to go left it takes time... Is there's a way to fix that?
B
25
S
8
G
2
Posts: 231
Reputation: 3,068


Return to How do I....?

Who is online

Users browsing this forum: troxx, TwistedSaviour and 1 guest