But he isn't touching !!! --'

FuzzBuzzFuzzBuzz Member, PRO Posts: 119
Hi everyone! Got a small problem here...

Actor "A" Should DESTROY when actor "B" OVERLAPS with actor "A"

But her is the problem...

Whenever actor "B" SPAWNs, on actor "A" or not, actor "A" DESTROYs itself like if it was always overlapping with actor "B"

The only rule i've set up is an OVERLAP/COLLIDE rule between these two actors ("A" & "B") so it's getting a little confusing...
Any advice or thoughts would be great! :)>-
Thanks!

FuzzBuzz

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2014
    Does actor B have any rules, especially collision rules?

    Try this: create a new scene and drag actors A and the actor that spawns actor B onto the scene. Does the problem still occur? If not, then you likely unlocked one of your actors on your initial scene without realizing it.

    If the problem still occurs, are your actors' images the same size as your actors or are they smaller? Could it be that the visible area doesn't appear to collide but in fact the actors' boundaries are colliding? Try adding a log debugging statement to actor A in the collision rule and actor B not in any rule. For both, add self.position.X..","..self.position.Y to the expression editor. Then, open the Debugger window and Preview the scene. Do the x,y positions for actors A and B indicate a collision?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • FuzzBuzzFuzzBuzz Member, PRO Posts: 119
    Thanks Tatiang, it was indeed the image having a big invisible background behind it !
  • Thunder_ChildThunder_Child Member Posts: 2,343
    Yep this happened to me as well. Took forever to figure it out. As I remember my imported image was 1024x1024...but I interpolated at start up to only 40 w/h.
Sign In or Register to comment.