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

#1 2013-01-13 06:29:53

Gagamonster105
Scratcher
Registered: 2012-11-29
Posts: 100+

Turning Sprites

i have bit in my game where a bullet hits a shield and it has to turn back around. How do I get it to turn and head back towards the sprite that sent it


http://i46.tinypic.com/14bklrq.png <click

Offline

 

#2 2013-01-13 11:14:17

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

Re: Turning Sprites

If the bullet is moving with...

move (15) steps
...blocks, then you have a few options.  If you want the bullet to just turn around, tell it to:
turn ccw (180) degrees
There are more complicated ways to make it bounce.  If you want to know more, I'll dedicate a post to explaining simple bouncing (I don't have time right now).

Last edited by amcerbu (2013-01-13 11:15:17)

Offline

 

#3 2013-01-13 23:24:58

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Turning Sprites

point towards [sprite to point at v]
Enjoy!


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

Board footer