User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 34

Thread: Collision with backdrop not working

  1. #1
    No Products Registered

    Join Date
    Dec 2008
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Collision with backdrop not working

    Hello.

    I have a problem whereby an enemy is tracking the player and it is set to "Bounce" when it collides with a backdrop object. It does work most of the time, but sometimes the enemy does walk right through a backdrop object.

    I have set "collides with the background" and also "is overlapping a backdrop" but even the combination of both doesn't work.

    Does anyone have any experience of this?

    Thanks in advance,
    Tim.

  2. #2
    No Products Registered

    Join Date
    Aug 2010
    Location
    in my room
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision with backdrop not working

    is the backdrop set to obstacle in its properties?

  3. #3
    No Products Registered

    Join Date
    Dec 2006
    Posts
    319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision with backdrop not working

    Also are you sure that they are both on the same layer?

  4. #4
    No Products Registered

    Join Date
    Dec 2008
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision with backdrop not working

    Thanks for the replies.

    Yes all the backdrop objects are set to "Obstacle" and there is only 1 layer in the game.

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision with backdrop not working

    Just a guess, but try checking your code to see if there are any conditions that might conflict with making the enemy bounce. for example, having the enemy move in a specific direction.

  6. #6
    No Products Registered

    Join Date
    Dec 2008
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision with backdrop not working

    Yes I was going to post the basic AI following routine to see if that might be causing it. It is:

    IF X position of "Enemy" < X("Player") THEN set X position to X("Enemy")+1

    and the same goes for the other 3 directions (i.e. "> X", "< Y" and "> Y" (hope that all makes sense!).


  7. #7
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision with backdrop not working

    you might need to do something to limit the movement condition, such as:

    IF X position of "Enemy" < X("Player") THEN set X position to X("Enemy")+1
    & Internal Flag 1 is off

    Then add a condition like:
    Enemy collides with wall, set flag 1 on, set alterable value A to 25

    Flag 1 is on, subtract 1 from Alterable Value A

    Alterable value A is lower than zero, set flag 1 off.

    That will temporarily turn off the "follow" AI to allow it to bounce properly.

  8. #8
    No Products Registered

    Join Date
    Dec 2008
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision with backdrop not working

    Thanks for that. I have implemented it but unfortunately it still runs through some objects as before.

    It seems to be a bug since I can't seem to find a fault in my logic here - or maybe it is the way I am moving the "enemy" that could be improved?

  9. #9
    No Products Registered

    Join Date
    Dec 2008
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision with backdrop not working

    Can anyone else please offer some assistance for this bug? I really don't want to abandon this project, I have put too many hours into it!

  10. #10
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision with backdrop not working

    I would hold off on calling it a "bug" just yet... That just means you've passed the blame on to the program and not yourself... Which pretty much leaves you stuck because you've given up fixing it.

    I would suggest saving a copy of your project and then removing stuff that you think might be causing a conflict, one at a time. (like the enemy movement) If the problem goes away, you will have figured out what is causing it by process of elimination.

    Once you find out what is causing it, then it becomes a lot easier to fix.

Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. Collision detection of backdrop objects not working outside of original frame.
    By butterfingers in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 16th August 2012, 09:50 AM
  2. Added backdrop collision not working
    By crusher in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 10th October 2011, 11:23 AM
  3. Active vs. Backdrop for collision?
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd April 2009, 05:50 PM
  4. Custom Backdrop Collision Help
    By Martin_Bodger in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th May 2008, 09:49 PM
  5. Backdrop Objects - Collision with box
    By Gamerdude in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 16th December 2006, 04:52 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
  •