User Tag List

Results 1 to 5 of 5

Thread: platform game help

  1. #1
    No Products Registered

    Join Date
    Sep 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    platform game help

    im trying to complete a platform tutorial and have ran into this line.
    start loop "gravity"ABS(grav("player"))times. everything fine up to the times dont know how to put this expression in.
    could you help

  2. #2
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: platform game help

    Well what Abs() does is return the absolute value of a number (ie: removes the negative if the number is negative). grav("player") means it is referencing an alterable value called "grav" in an active object called "player".

    So basically you are starting the loop "gravity" the absolute number of times as the alterable value called "grav" of "player" object.


  3. #3
    No Products Registered

    Join Date
    Sep 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: platform game help

    thanks for your reply. but how do you get the "times" to show up in the event editor. thanks for the detailed explantion now i know what its doing if i could only find out how to enter it.
    thanks for your help

  4. #4
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: platform game help

    You are calling a fastloop. The expression editor popup that comes up will first ask you for a loop name, which is "grav" in this example. Then the next one will ask for the number of times to start the loop. This is where the Abs() formula is used for this example.

    To do a fastloop, right click in the event editor under Special Conditions-> Fastloops -> Start Loop

  5. #5
    No Products Registered

    Join Date
    Sep 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: platform game help

    thanks alot realy didnt realise there was a 2 seperate calacutions screens.

Similar Threads

  1. Platform game Help: Jump through platform slopes
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 10th December 2009, 04:15 AM
  2. need help with platform game
    By kainan in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 4th June 2008, 11:33 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
  •