This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-07-05 03:20:44

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Help with pointing to a specific point?

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?


*Insert some witty, funny or sarcastic comment here*

Offline

 

#2 2012-07-05 03:50:15

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Help with pointing to a specific point?

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)


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-07-05 03:53:25

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Help with pointing to a specific point?

Check this thread out.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#4 2012-07-05 03:55:20

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Re: Help with pointing to a specific point?

jontmy00 wrote:

Check this thread out.

I've already tried the formula from that page, and it didn't work...


*Insert some witty, funny or sarcastic comment here*

Offline

 

#5 2012-07-05 04:11:28

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Help with pointing to a specific point?


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#6 2012-07-05 04:36:08

Aux2
New Scratcher
Registered: 2012-06-23
Posts: 32

Re: Help with pointing to a specific point?

Make an invisible sprite go to your position then tell the sprite you want to point at the position point at the invisible sprite.

Offline

 

#7 2012-07-05 04:42:19

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Re: Help with pointing to a specific point?

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)


*Insert some witty, funny or sarcastic comment here*

Offline

 

#8 2012-07-05 04:43:23

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Re: Help with pointing to a specific point?

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  sad


*Insert some witty, funny or sarcastic comment here*

Offline

 

#9 2012-07-05 04:45:03

Aux2
New Scratcher
Registered: 2012-06-23
Posts: 32

Re: Help with pointing to a specific point?

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  sad

Ah, did not read that bit.

Offline

 

#10 2012-07-05 06:33:44

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Help with pointing to a specific point?

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

 

#11 2012-07-06 00:21:08

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Re: Help with pointing to a specific point?

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  sad


*Insert some witty, funny or sarcastic comment here*

Offline

 

#12 2012-07-06 00:23:11

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Re: Help with pointing to a specific point?

Oh, just found the solution  big_smile
I'll request for this to be closed.


*Insert some witty, funny or sarcastic comment here*

Offline

 

#13 2012-07-06 02:33:19

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Help with pointing to a specific point?

Closed by request of owner.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer