moving player with up and down control

Get help using Construct 2

Post » Tue Mar 27, 2012 1:44 pm

Hi,

I want to create a player with controls like the controls on this video

http://www.youtube.com/watch?v=R_9JlC_-MZ8

1. The player is moving forward all the time
2. pressing top arrow make it goes up (not jumping)
3. pressing down arrow make it goes down (not sitting)

So do i need to set a bullet behavior to the player? if yes, how can i make it goes up and down to collect and void things?

Thanks.
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Tue Mar 27, 2012 2:15 pm

Maybe you can use a Custom Movement

I'll try to do it for my game too. If i succeed i'll post you an example.Dado2012-03-27 14:26:27
B
15
S
5
G
1
Posts: 40
Reputation: 2,026

Post » Tue Mar 27, 2012 2:48 pm

@Dado

I already tried to do it using custom movement like here



But, i was thinking of something more real, so i will try the car movement may be "i never tried it before and i don't know if it's fit for this case" or the bullets with angles.

Thanks anyway for ur help :)
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Tue Mar 27, 2012 3:43 pm

Let me know if it fits that i would like to use the same behaviour. Thanks!
B
15
S
5
G
1
Posts: 40
Reputation: 2,026

Post » Tue Mar 27, 2012 4:46 pm

How about something like this?
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Mar 27, 2012 6:36 pm

Nimtrix solution seems to work.
I tried a solution with car behavior that works but you could not associate it with a bullet movement to "move" the background as Nimtrix do. And the movement seems to be "not real".

Here the sample

I work to another solution based on samples i found on forum.
That's the result.
I think is the best solution: infinite background scrolling with two images (with Nimtrix solution you have to put a very long background) - no bullet behavior - 8direction(up-down) on object to move - the movement seems to be more "real". Hope you enjoy it.
(Use up - down arrows to move)

Here the second sampleDado2012-03-27 20:03:07
B
15
S
5
G
1
Posts: 40
Reputation: 2,026

Post » Wed Mar 28, 2012 10:33 am

@Nimtrix & @Dado

Thanks 4 ur examples :)

What if i want to create the same moving sprite but with jump and sit, do u thing it's better to use bullet behavior for moving forward with platform behavior for jump and sit?
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Wed Mar 28, 2012 10:39 am

I think you can modify my last sample (which doesn't use the bullet behavior for moving forward but scroll-left the background to give the movement sensation), substitute 8direction(up-down) with a total 8direction and add platform behavior for jump and sit.
I'll try this evening on this solution.
If u can try before and have the solution uploading it here will be very appreciate. ^^
B
15
S
5
G
1
Posts: 40
Reputation: 2,026

Post » Wed Mar 28, 2012 11:26 am

@Dado

Here is what i did so far with the bullet and platform behaviors.

http://dl.dropbox.com/u/52040403/bullet%20with%20platform.capx

Please take a look.

Just one problem i want the jump to be in a curve way not straight to top. how can i do that?
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Wed Mar 28, 2012 11:40 am

I think we can make it jump in a curve by set the player position while jump and fall like this example

http://dl.dropbox.com/u/52040403/bullet%20with%20platform2.capx
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Next

Return to How do I....?

Who is online

Users browsing this forum: Khamsou and 20 guests