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

#1 2008-08-12 15:59:13

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Projectiles

How can i make a projcetile so that when i a certain key isn't pressed it goes to and points towards a sprites but when i the key is pressed it points away and glides toward the edge?


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#2 2008-08-12 16:08:15

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Projectiles

when (green flag) clicked
forever
    if <key ____ pressed>
         point in direction (whatever the direction is supposed to be)
    else
         poinst towards [sprite1 (or whatever sprite)]

Offline

 

#3 2008-08-12 16:24:29

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Projectiles

never mind i got it!


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

Board footer