User Tag List

Results 1 to 4 of 4

Thread: stop jumping while key is pressed

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    stop jumping while key is pressed

    quick noob question... how can i make mi character stop jumping while the jump button is still pressed from the previous jump?
    also why does the character bounces on the side walls?

    im using multimedia fusion2 on windows xp

    thanx

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Posts
    302
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: stop jumping while key is pressed

    well, it all depends on how you are making the character jump. If you are using a built in movement, this first thing i would suggest is to download the "platform movement object"

    http://helper3000.net/liji/extensions/download.php?name=Platform Movement

    Look throught the documentation of that object and you will have a much more powerful movement in your game than the built in one.

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: stop jumping while key is pressed

    yes i have that, ive tried everything and i still cant make it stop jumping while the button is pressed.

    is there an extension for an advanced plattaform movement?
    The link obove is broken and i didnt find it in the forums
    thanx

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: stop jumping while key is pressed

    Hi elautor,

    If you keep playing with the platform movement object (and not the "built in platform movement") you will find that it makes doing tons of really cool platformer stuff really really easy. There IS a bit of a learning curve though at first.

    Theres got to be some examples around.

    As far as not jumping continualy while jump button is pressed, you need something along the lines of this:

    if player object is standing on the ground
    if players alterable value X(name it "jumped yet" or something)=0
    if player presses jump

    then make the player jump AND set value X to 1

    then a second event:

    if player is on the ground
    if player is not holding jump
    Set player alterable value X to 0



    I hope that helps Have fun.

Similar Threads

  1. No key pressed.
    By Fanotherpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th December 2011, 12:54 AM
  2. [BUG] Pressed mousebutton
    By Popcorn in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 23rd November 2011, 03:54 PM
  3. never experienced this? What have i pressed?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 9th May 2009, 06:36 PM
  4. how do you stop active from moving while jumping?
    By Meegol in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 6th February 2009, 10:40 AM
  5. Detect if Alt key is pressed?
    By Joeyotrevor in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th May 2008, 10:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •