I am making a 1s1s game that involves an "enemy" appearing from a side and pointing towards the player.
I need the enemy to point towards the specific point (the player), but since it is not a sprite, I can't point to it. The x-y co-ordinates of the player are stored in variables. How do I do this?
Offline
Let me think...
It would be nice to have this block:
point at x: (0) y: (0)Otherwise I have no idea.
Last edited by jontmy00 (2012-07-05 03:50:35)
Offline
Offline
SciTecCf wrote:
Doesn't work. Only comes out with either 45.0 or -135.0 when the "target" is at 0,0, regardless of where the "enemy" is.
Last edited by Shadowed1 (2012-07-05 04:42:47)
Offline
Aux2 wrote:
Make an invisible sprite go to your position then tell the sprite you want to point at the position point at the invisible sprite.
I can't do that since the game is supposed to be 1s1s
Offline
Shadowed1 wrote:
Aux2 wrote:
Make an invisible sprite go to your position then tell the sprite you want to point at the position point at the invisible sprite.
I can't do that since the game is supposed to be 1s1s
![]()
Ah, did not read that bit.
Offline
This question was just answered on another thread in the "Help with Scripts" forum.
Here's the link:
http://scratch.mit.edu/forums/viewtopic.php?id=100707
Offline
amcerbu wrote:
This question was just answered on another thread in the "Help with Scripts" forum.
Here's the link:
http://scratch.mit.edu/forums/viewtopic.php?id=100707
I went onto that thread before I posted this, and the solution there did not work
Offline