User Tag List

Results 1 to 5 of 5

Thread: Custom Movement

  1. #1
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom Movement

    Hi!
    I have a movement that player is moving 32 pixels, using this event

    +Upon pressing "Left Arrow"
    -Set X position to X( "Player" )-32

    I can't use
    +repeat while pressing "Left Arrow" because it won't move 32 pixels then. Is it possible to set the event
    +Upon pressing "Left Arrow" to repeat so I don't need to tap the Left Arrow when the player is walking?

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Custom Movement

    why won't it move 32 pixels when you use the repeat while- condition?

  3. #3
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Custom Movement

    Make sure then only event is 'on keydown' if your still having trouble PM me and I'll make you an example... Goodluck

  4. #4
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Custom Movement

    Quote Originally Posted by Greyhill
    why won't it move 32 pixels when you use the repeat while- condition?
    When I use
    +Repeat while pressing "Left Arrow"
    -Set X position to X( "Player" )-32

    The player is not moving 32 pixels, but speed of 32. It's very fast. I'm not sure how I can fix it this way. If you know, please let me know.

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Custom Movement

    Well you could add "Restrict actions for ..". This way, the user can keep holding it, but it will only happen e.g. every half a second, or what else you want.

    I assume you want it to go in steps of 32 pixels, right?
    Alternatively you could just move it by 1 or 2 pixels, but make it snap to the grid when the player doesn't press a button:

    + Repeat while NOT pressing "Left Arrow"
    + Repeat while NOT pressing "Right Arrow"
    > Set X position to X("Player")/32 * 32

Similar Threads

  1. Custom Movement help.
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th December 2011, 02:55 AM
  2. Custom movement
    By Hordolur in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th July 2008, 11:16 AM
  3. Custom Movement problem (Horizontal movement)
    By KiteRyagara in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th June 2008, 03:40 PM
  4. Help with custom movement.
    By Dynamite in forum File Archive
    Replies: 2
    Last Post: 10th January 2008, 01:03 AM

Posting Permissions

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