User Tag List

Results 1 to 2 of 2

Thread: Fast loop within fast loop - platform game

  1. #1
    Safe
    Guest

    Fast loop within fast loop - platform game

    Hi everyone,

    I recently started building a platform game engine based on DavidN's tutorial: "Custom Platform Movement".

    In my game I have a "Rock" object that simulates gravity by using fast loops to make it fall down perfectly on any platform.

    Everything was working well until I felt the need for using multiple instances of the same "Rock" object.

    After much research I found out about the spread value function to give each instance of my Rock a specific ID and then running a fast loop named "IDloop" and comparing the ID of my rock object with the index of "IDloop".

    My problem is that I need to have a loop run within another loop and I don't understand how TGF 2 manages that... I can't get my gravity loop to run individualy for each rock. :mad:

    Any tips? Thanks.

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fast loop within fast loop - platform game

    Just start the 2nd loop from the "on loop" of the first. Like this:

    Always
    -Start loop "outer loop"
    On loop "outer loop"
    -start loop "inner loop"
    On loop "inner loop"
    -do stuff with both inner and outer loop indexes

    Don't put two "on loop" conditions on the same event.

Similar Threads

  1. Instead of Fast Loop
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 5th November 2010, 04:08 AM
  2. Spread value + Fast Loop bug?
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 9th October 2010, 01:45 AM
  3. fast loop and loop index
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2010, 01:43 AM
  4. fast loop
    By jhonson in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th November 2008, 09:18 PM
  5. Fast Loop - How do you use it?!
    By jonjoyceuk in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 31st May 2008, 02:47 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
  •