User Tag List

Results 1 to 3 of 3

Thread: Why won't this sequence repeat?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2007
    Location
    UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why won't this sequence repeat?

    Back again with another headache.

    This time I have a boss sequence that won't repeat if the player is killed before "completing" the room.

    In the image below the large spider will move very quickly towards the player while the player is stuck on the cobwebs around the upper area (the little spider take care of the lower cobwebs!).
    The larger spider eats the player and then the player is respawned in another room. The problem is when the player renters the room and triggers the large spider again - the sequence is not repeated.


    Here's the code


    Let me break this down.

    Starting at 720 when the player collides with the traps group (the cobwebs) two fastloops are stopped which prevents the player form moving (they are stuck on the cobweb).
    The large static spider active launches a second spider active that looks the same and the original static is destroyed - this gives the illusion the spider is flinging itself down towards the stuck player.

    721 looks for when the launched spider active collides with the player and is destroyed in it's place a third spider active (position is moved from outside the frame) that eats the player. The player is made invisible.

    722 When the animation of the spider eating the player is over the player is moved outside the room and made visible again, the frame is moved to that room so we don't see the eating spider destroyed and a new static one back on the cobweb at the start (position 960x1984).

    When the player triggers the spider a second time it launches the projectile spider which passes right through the player and off outside the frame with the player remaining stuck on the cobweb.

    I've tried various methods for this whole sequence and this seemed like a quick cheat way to do it but I don't know how to make it repeatable.

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module

    Join Date
    Sep 2006
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I haven't looked at your code thoroughly but the first thing to check is that you're creating the spider object (event #722) on the correct layer. That's usually the reason that collisions don't work (they don't work across layers) and Fusion selects Layer 1 by default so it's an easy one to miss. You're currently creating it on Layer 1 - is that the same layer as your player object in the frame editor?

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2007
    Location
    UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It certainly seemed to be on the same layer, nim.

    I solved it by changing the spiders movement to bouncing ball set to off. When the player triggers it it starts and "look in the direction of player" (never understood that, looking has nothing to do with it!). Once a collision with the player happens the player is re-spawned and the spider repositioned at the start. It repeats now.

Similar Threads

  1. How can I make a repeat of the car
    By alexander in forum Fusion 2.5
    Replies: 4
    Last Post: 23rd October 2014, 04:04 AM
  2. Infinity Loop using Repeat?
    By darkmanx_429 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th August 2013, 05:18 PM
  3. Repeat rotation
    By Earl in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th July 2012, 05:54 AM
  4. Slow down Repeat
    By Taceo in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 26th July 2010, 05:58 PM
  5. Pb Evènement Repeat
    By CrystalNoir in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 6th August 2006, 11:24 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
  •