hi, i have a question about somethgin in scratch. i'm buildign a game where i have to detect where the enemy is without using the point toward tool, so i was wondering, if there is another way that i can detect the enemy so that i can fire accurately at it, and that i can know wehre the enemy is and try to stay away from it, any help is appreciated thank you!
Offline
You could use the "X of enemy" "Y of Enemy" variables and compare them to your sprites X and Y positions.
Or you could use some form of sensor sprite - eg a ghosted wide sweeping radar line that rotates around your sprite until it finds an enemy.
Offline
Mayhem wrote:
Or you could use some form of sensor sprite - eg a ghosted wide sweeping radar line that rotates around your sprite until it finds an enemy.
Wow, that's a great idea! And virtually trig-free!

Offline
hey evyerone i know i asked this question before, but then i read the criteria's wrong..... what i have to make was to detect where a enemy is without using the point towards tool, and without using the x or y position of the enemy.... i know its a tough one, but then i have 1 sprite in the middle of the map that can help me, and i can also build another sprite that can roam aroudn the map so i was wondering if any of you can help me? i heard that you can use trig. to do it but how?!?!? -_-'
Offline
I alrady posed a link to a demo of using a sensor sprite in the other thread you started asking the same question.
Offline