Actors don t collide where i want them to collide
Creator97
Member Posts: 140
I have an actor and it has some kind of glow around it. When this actor collides the problem is that it does nt collide on its edges but on the glowing edge. Do i have to say ok glowing object follow every time the actor on its x and y position or is there another simpler way to don t make any more cpu usage?
Best Answer
-
The_Gamesalad_Guru Posts: 9,922
You are better off attaching an invisible actor sized to the collision area you want to your actor or use a magnitude expression. S means "SELF" as in self.position.X
Answers
Try adding,
when actor1;s x = actor2's x -(PUT HERE THE VALUE BETWEEN YOUR ACTOR AND THE GLOWING)
Do : Collide or overlaps actor1 with actor2
Try the same for Y , tell me if it works...
MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :
Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261
Find the " vote " button and press it
i will tell you if i have time to test
What are you telling me here. I didn t get it which behaviors do I have to put in?
Isn t your example not same like: ok glowing object follow every time the actor on its x and y position???!!
So your s in nonsense for me can you make it clearer?!
Yeah ok I could do invisible but that s just for actors smaller. So normally I will do follow y and x position but I thought there would be something better. So I think this kind of magnitude expression is what I want. But how do I use it? Is this for saying ok I have an actor 40x40 (complete) so the glowing and the actor is 40x40 and just the actor is 20x20 so how can I Gamesalad tell please collide at the 20x20 and miss the 10 on each side!!!