User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: Delaying a player from spawing immediately

  1. #11
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    heres an example using the eggtimer object, which is what you originally wanted to do (i think?)

    the timer here is checking 3 seconds after the last death of the sheep, and can easily be modified or copied.

    timer to spawn.mfa

  2. #12
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    I have quickly done up an example for you in 5 events. This could be abbreviated to just two events, but for the example I included movements in there to display it working for you.

    This is assembled using 2 events using the game's FPS timer instead of the built-in timer as this can (on some platforms) cause issues. With using the framerate to determine the timer it's guaranteed to keep up with your game/app at all times.

    jbrown-playerspawn.mfa
    Want to learn Clickteam Fusion 2.5?




  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    ChrisBurrows example is perfect for this. There are so many ways of doing this sort of thing and they are all good. I usually use the objects alterable values and just set the object off screen then reposition it after the delay is finish. Four events like Chris's
    Attached files Attached files

  4. #14
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If you don't mind counting deep into the treacherous depths of negative infinity, it can be done in 3 events.
    Attached files Attached files

  5. #15
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Sorry to be Negative towards yours Chris, but I shot the target 3 times and it didn't respawn. You need to remove 'Only One Condition When Event Loops' and retry with <= 0. It can skip, as it did with me. No need for only once event loop because you're 'Always' means its subtracting a number all the time so it would only hit 0 or -1 once anyway before resetting :p
    Want to learn Clickteam Fusion 2.5?




  6. #16
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Kind of strange, Mr. Borrows example in post 14 works fine on my end every time. Nice Chris! Me likey!!

  7. #17
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Mmmm I rushed that one.

  8. #18
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2010
    Location
    Yonkers, New York, USA
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Madness. You've gone too far!

    Quote Originally Posted by ChrisBurrows View Post
    If you don't mind counting deep into the treacherous depths of negative infinity, it can be done in 3 events.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Beta 33 [BUG] objects spawing in wrong place.
    By BrashMonkey in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 29th August 2012, 08:04 PM
  2. Delaying events?
    By Tsun in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th June 2011, 02:23 AM
  3. Application is delaying to start.
    By Nyc in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 11th June 2011, 03:36 PM
  4. Sub-app gains focus immediately?
    By Namida in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th April 2010, 11:20 AM
  5. delaying the next event
    By delusan in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 25th September 2007, 05:37 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
  •