User Tag List

Results 1 to 7 of 7

Thread: Movement Blocker

  1. #1
    Clicker iOS Export Module

    Join Date
    Sep 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Movement Blocker

    Hi all!

    I'm having a little trouble trying to figure something out. Basically I want to set the player-character so that if a collision occurs then a particular key is disabled. I want to do it using variables but I can't seem to find the ability to disable an individual key, only total control.

    To be specific, if player presses right, player-character continually moves right until a collision occurs. Right key then needs to be disabled to prevent player-character from moving through the object that caused the collision.

    I have the variables ready to go I just can't find 'disable/ignore key'

    Anyone know?

    Thanks,

    Michael.

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,734
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    When you set the keys up for movement do a exception if Alterable Value = 1

    On the collision set Alterable Value = 1

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Fusion 2.5

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The best way here would be "

    Upon pressing right key
    +Player is not overlapping an obstacle

    Set player x to x("Player")+1."

    I think. You might need to use fastloops to avoid getting "stuck" in an obstacle., in that case you need
    "Right key is pressed
    + Player is overlapping object

    Set player x to X("Player")-1" inside a fastloop, so that the adjusting movement is done inside a fastloop, before the new frame is drawn.

  4. #4
    Clicker iOS Export Module

    Join Date
    Sep 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nivram View Post
    When you set the keys up for movement do a exception if Alterable Value = 1

    On the collision set Alterable Value = 1

    Marv
    Hi Marv, Thanks for the reply, how do I make an exception. You suggestion seems perfect!

  5. #5
    Clicker Fusion 2.5

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "If Alterable Value = 0
    Player presses right
    set player x to X("player")+1

  6. #6
    Clicker iOS Export Module

    Join Date
    Sep 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect Thanks!

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You might want to give my fastloop movement example a look over. It shows pixel perfect movement/collision detection using fastloops. It's in my signature.

Similar Threads

  1. Pop-Up blocker
    By videogiochi in forum SWF/Flash Export Module Version 2.0
    Replies: 7
    Last Post: 14th May 2011, 06:06 PM
  2. Popup Blocker Help!
    By Evilized79 in forum SWF/Flash Export Module Version 2.0
    Replies: 14
    Last Post: 31st January 2011, 06:49 PM
  3. click blocker
    By strat59 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th February 2007, 11:06 AM
  4. resize click blocker object
    By rhoymand in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th November 2006, 06:49 PM
  5. Click Blocker Not Blocking Clicks?
    By Annie in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 16th July 2006, 10:47 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
  •