Problems with actor , help !
Thani
Member Posts: 128
Ok I'm working on my game at the moment , and want to let my actor gets destroyed when it collides or overlaps with another actor . But my actor will get destroyed before hitting the actor , because it hits the scaling bar ( the bar that sizes the actor or w/e its called ) .
So how can I avoid this , so my actor will get destroyed when it collides with the actual actor and not the sliding bar ?
So how can I avoid this , so my actor will get destroyed when it collides with the actual actor and not the sliding bar ?
Comments
Is that it?
Regardless, you could make a second actor (let's call him 'shadow') and constrain its X and Y position to that of the original actor (let's call him 'player').
Then, instead of checking if the enemy collides with the player actor, check if the enemy collides with the shadow actor.
Hope that helps!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
This is what I mean . I'm not even touching the circle or hoop .
Sorry about the bad quality , i just downloaded it to show it to you guys .
In the graphic for the circle, crop it so that the circle exactly touches the edges.
Then in GameSalad, double tap your hoop actor and look at the inspector on the left hand side (where all the info is, e.g. size, position etc)
Scroll down to 'Physics' and change the collision shape from rectangle to 'circle'
That should do it.
Hope it helps!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
/hi5
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
right back at ya!
(always happy to have my suggestions verified by 'experienced' members ... since I'm still new and wingin' it a bit)