moving player with up and down control

0 favourites
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hi,

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

    youtube.com/watch

    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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • Dado

    I already tried to do it using custom movement like here

    <img src="http://dl.dropbox.com/u/52040403/Capture.JPG" border="0" />

    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 :)

  • Let me know if it fits that i would like to use the same behaviour. Thanks!

  • How about something like this?

  • 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 sample

  • 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?

  • 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. ^^

  • Dado

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

    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?

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

    dl.dropbox.com/u/52040403/bullet%20with%20platform2.capx

  • 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! <img src="smileys/smiley36.gif" border="0" align="middle" />

  • 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

    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. <img src="smileys/smiley1.gif" border="0" align="middle" />

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

    >

    > dl.dropbox.com/u/52040403/bullet%20with%20platform2.capx

    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. <img src="smileys/smiley1.gif" border="0" align="middle" />

    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.

  • Dado

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

    Player Platform is Jumping:
    -> Set position to (player.x+4, player.y)
    
  • Yep, there is any way to conserve "curved jumping" without acceleration sensation? That was our question at this point i think.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)