User Tag List

Results 1 to 3 of 3

Thread: Platformer Problem : multiple same objects are being destroyed when collides

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    alperoz49's Avatar
    Join Date
    Feb 2014
    Location
    Turkey
    Posts
    52
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Platformer Problem : multiple same objects are being destroyed when collides

    Dear clickteam community ,

    I am facing a critical issue (for the dynamics) and could not figure out how to fix this as a noobie
    I believe this is a very simple task for you to handle.


    Before i shoot it out , let me give some information about the in-game items.


    1-) my main object(hero) has pyhsics - platformer movement.

    2-) there are multiple enemies that has path movements from right to left of the screen (looping , random enemies in every 2 seconds created in the right side)

    3-) there is an active object on all these enemies : i want my hero to die when it collides directly with enemy but when my hero collides with this object on enemy , destroy the enemy and the object, (mario style) this is what i thought but....

    MY TARGET : As i mentioned i want my hero to jump over these enemies and kill that individual enemy when the jumping OVER is successful , otherwise he must die if he directly collides with the enemy.

    PROBLEM : Whenever i give a "destroy" command in the event editor , it destroys all the same objects and enemies in that frame but i only want that individual enemy to be destroyed when collides with my hero and keep the others in the frame ( I hope i can explain it well)

    I really appreciate your support , the future of my game depends on this custom engine

    Best Regards.
    Alper

    Please note that i am at beginner level so i ll be glad if you keep the solution simple and clear

  2. #2
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    fusion doesn't know which enemy you want to destroy.. you need to tell it.

    one simple way, have a detector object positioned below the player sprite, when this object collides with the enemy, destroy the enemy.

    a better way, you could create a condition "X position of player > than enemy", destroy enemy (assuming the enemies are moving from the right, and when the player jumps over the enemy, his x position will be higher than that enemy.) I'll post an example if you're still stuck.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    alperoz49's Avatar
    Join Date
    Feb 2014
    Location
    Turkey
    Posts
    52
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    EDIT : It worked very well on MMF2 Demo , i think it will also work on CF2.5

    thanks a lot DaveC

Similar Threads

  1. Detecting multiple destroyed duplicated objects?
    By Konidias in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 28th December 2010, 08:34 PM
  2. Objects destroyed next frame Problem
    By HyperspazzMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd July 2010, 04:19 AM
  3. Strange collision problem for multiple objects.
    By Canto in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 8th November 2006, 08:31 PM
  4. Pls help with collides with backdrop problem
    By Jaeu in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd August 2006, 11:15 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
  •