How do I move one right and stop the sprite (train) ?

Just started using Construct 2? Post your questions here

Post » Fri Aug 01, 2014 9:04 pm

Hi,

I'm beginer and i'm French so my English can be possible is suck :P.

So i have any questions, so now that my games, a train games :

img15.hostingpics.net/pics/383858screen.png

It's just a test, and when i add Behaviors > Platform and i config :

Max Speed : 330
Acceleration : 15
Deceleration : 1.6
Jump Strength : 0
Gravity 0
Max fall speed : 1000
Default controls : Yes
Initial state : Yes

But when i press the right arrow in keyboard, the train moves, but when i press the left arrow he stop but go back, and i want just moves right and stop.

Can it's possible? If it is can you say me how ?

Thanks.
B
4
Posts: 10
Reputation: 212

Post » Fri Aug 01, 2014 10:42 pm

Try this capx with 8 direction behavior:
You do not have the required permissions to view the files attached to this post.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,165

Post » Sat Aug 02, 2014 7:09 am

Thanks for your help. He work, but one more problem, the train stop quickly but i wan't he continue to the sam with Platform behavior, how i can make this?

Thanks
B
4
Posts: 10
Reputation: 212

Post » Sat Aug 02, 2014 8:16 am

you mean like this
You do not have the required permissions to view the files attached to this post.
B
257
S
42
G
15
Posts: 1,991
Reputation: 41,411

Post » Sat Aug 02, 2014 8:51 am

Yes, the player can stop the train, but when he stop the train go back and i wan't this. Just moving one right and stop not 2 right, Do you understand what i mean? ^^
B
4
Posts: 10
Reputation: 212

Post » Sun Aug 03, 2014 4:37 pm

Anybody can help me?
B
4
Posts: 10
Reputation: 212

Post » Sat Aug 09, 2014 10:39 am

Burak46 sorry mate cannot understand what are you asking me to help you with?
B
257
S
42
G
15
Posts: 1,991
Reputation: 41,411

Post » Wed Aug 13, 2014 12:59 pm

Is it what you are looking for ?
You do not have the required permissions to view the files attached to this post.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,328
Reputation: 71,298

Post » Fri Aug 22, 2014 9:50 am

Kyatric wrote:Is it what you are looking for ?

Thank you each of you.

Yes is that, but it's possible to stay pressed ?

Now i can make checkpoint (i know how i do and the high score table with mysql) :D
B
4
Posts: 10
Reputation: 212

Post » Fri Aug 22, 2014 11:50 am

Burak46 wrote:Yes is that, but it's possible to stay pressed ?


Yes, just change the condition from Event 1 and 4 to "Keyboard: Key is down".
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,328
Reputation: 71,298

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests