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
27
S
10
G
2
Posts: 237
Reputation: 3,330

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
101
S
32
G
11
Posts: 1,546
Reputation: 21,667

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
27
S
10
G
2
Posts: 237
Reputation: 3,330


Return to How do I....?

Who is online

Users browsing this forum: ASHKAR, brunopalermo, ItsAstro and 31 guests