User Tag List

Results 1 to 7 of 7

Thread: Fast Loops advice

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    S.East England
    Posts
    744
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fast Loops advice

    Hi All,

    Has anyone got any advice or examples of fast loops being used on an active that can basically move in all directions?

    I've tried going through it using davidn's platform fast loops but having a few issues, with it not being a platform game.

  2. #2
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fast Loops advice

    A fast loop is a fast loop. What are you trying to do in it?

    Your question is a little bit vague for me.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    S.East England
    Posts
    744
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fast Loops advice

    Sorry basically I want to check for collisions, like in the davidn platform tutorial.

    I have a invisable box surrounding my character and I just want it to check for collisions instead of just the active which gets stuck on objects.

    I want the character to be able to move anywhere he wants. However I do have it where if you stop holding up, the character slowly falls back to ground.

    I imagine i'm thinking its more complicated than it is, especially as there are no reason for jumping or performing many other actions.

  4. #4
    Clicker iOS Export Module

    Join Date
    Feb 2010
    Location
    Behind the tree!
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fast Loops advice

    Do you mean a top down 4 direction movement?

    When the left key is pressed start a loop for how many pixels fast you want the player to move.

    repeat while left key pressed
    -start loop "move left" however fast you want player to move.

    onloop "move left"
    +player NOT overlapping obstacle

    set player X position to player x position -1


    when player object overlaps an obstacle active then stop the move loop and reposition the player object back 1 so its no longer overlapping.

    onloop "move left"
    +player overlapping obstacle

    stop loop "move left"
    +set player X position to player x position +1

    Do the same for right, but +1 to position and -1 on collision
    and the same for up and down, only use y positions.

    Also you can use qualifiers to group different obstacle actives together. So you would have

    +player NOT overlapping obstacle.group etc.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    S.East England
    Posts
    744
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fast Loops advice

    Thankyou. I will try this later.

    I did figure it out another way without using fastloops but i will also try your fast loop way as well to see if it works better =)

    Quote Originally Posted by Bigfoot
    Do you mean a top down 4 direction movement?

    When the left key is pressed start a loop for how many pixels fast you want the player to move.

    repeat while left key pressed
    -start loop "move left" however fast you want player to move.

    onloop "move left"
    +player NOT overlapping obstacle

    set player X position to player x position -1


    when player object overlaps an obstacle active then stop the move loop and reposition the player object back 1 so its no longer overlapping.

    onloop "move left"
    +player overlapping obstacle

    stop loop "move left"
    +set player X position to player x position +1

    Do the same for right, but +1 to position and -1 on collision
    and the same for up and down, only use y positions.

  6. #6
    Clicker iOS Export Module

    Join Date
    Feb 2010
    Location
    Behind the tree!
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    S.East England
    Posts
    744
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fast Loops advice

    What a legend!! Thanks mate.

Similar Threads

  1. Fast Loops
    By Verbage in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 12th April 2012, 03:07 PM
  2. Fast Loops vs Grouped Fast Loops vs ForEach
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th August 2010, 12:22 PM
  3. Help please (360 and fast loops)!
    By RealGameMaker in forum File Archive
    Replies: 3
    Last Post: 19th August 2009, 12:30 PM
  4. Help with fast loops
    By BenMo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th December 2006, 05:48 PM
  5. Fast loops
    By BenMo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th December 2006, 09:13 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
  •