moving player with up and down control

Get help using Construct 2

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

Post » Wed Mar 28, 2012 1:03 pm

Your sample it's cool but it seems to accelerate during jumping...
That's due to the bullet behavior plus scroll-to behavior. Infact if you jump when the layout is not scrolling it does not accelerate.
I set also position of background during jumping and falling( TiledBackground set position (TiledBackground.X+4, TiledBackground.Y) and it solves the acceleration sensation.

The problem is that when your reach the end point of layout (and your player is facing to the wall), during jumping tbe layout can still traslate outside window xD.

I'll try to find a solution! Dado2012-03-28 13:23:04
B
15
S
5
G
1
Posts: 40
Reputation: 2,026

Post » Wed Mar 28, 2012 2:44 pm

[QUOTE=mina] 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[/QUOTE]

If you still need some help, could you please explain in a bit more detail how you'd like him to jump?

Also, if you're using platform behaviour, you can use "Simulate platform pressing right" instead of bullet as well. If you want to.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Mar 28, 2012 3:01 pm

[QUOTE=Nimtrix] [QUOTE=mina] 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[/QUOTE]

If you still need some help, could you please explain in a bit more detail how you'd like him to jump?

Also, if you're using platform behaviour, you can use "Simulate platform pressing right" instead of bullet as well. If you want to. [/QUOTE]

I was just going to write that we could use "System -> Every pick -> Simulate platform pressing right" and delete bullet behavior.
However it seems to give the sensation of acceleration even with this, depending on scroll-to behaviour i think.
B
15
S
5
G
1
Posts: 40
Reputation: 2,026

Post » Wed Mar 28, 2012 3:10 pm

@Dado

The sensation of acceleration is because of the events mina added for a more curved jumping movement.

[code]
Player Platform is Jumping:
-> Set position to (player.x+4, player.y)
[/code]Nimtrix2012-03-28 15:11:26
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Mar 28, 2012 3:18 pm

Yep, there is any way to conserve "curved jumping" without acceleration sensation? That was our question at this point i think.Dado2012-03-28 15:18:47
B
15
S
5
G
1
Posts: 40
Reputation: 2,026

Post » Sat Mar 31, 2012 9:36 am

@Nimtrix Thanks 4 ur help. if i change the bullet to simulate "press right" i need to move it by pressing right arrow, but i want it to move to right all the time.

@Dado as Nimtrix said "The sensation of acceleration is because of the events I added for a more curved jumping movement". That's exactly what i want "curved jump" and it looks fine, but if u have a nicer way to do that i would like to know it and i will appreciate that :)
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sat Mar 31, 2012 9:39 am

I just can't figure out how to solve the "acceleration" during curved jump xD
B
15
S
5
G
1
Posts: 40
Reputation: 2,026

Post » Sat Mar 31, 2012 3:09 pm

Maybe it looks better with smooth scrolling, what do you think?

CurvedJump_Example.capx

Also, what I meant was if you add "Every tick: Simulate platform pressing right", it'll move to the right with the speed of your platform behaviour.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Previous

Return to How do I....?

Who is online

Users browsing this forum: flemmig, Matthew de, semaso, Skebab, Virpoja, Yahoo [Bot] and 24 guests