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

#1 2007-07-02 22:56:13

HunterE30633
Scratcher
Registered: 2007-07-02
Posts: 3

HELP ME WITH DIS JUNK

mk, so, does anyone know how to make things solid so my characters cant move through them? Also does anyone know how to make things shoot? And how can i put AI into it?

Offline

 

#2 2007-07-03 05:18:59

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: HELP ME WITH DIS JUNK

probably the best way to make something shoot. is to have a script involving a variable called gun direction.
this is an idea for the bullets script.

when 'space' pressed:
go to gun
point in direction 'gundirection'
repeat until (touching enemy or edge etc)
move 5 steps.

this of course also requires the gun or character to have a script like this
forever set 'gundirection' to 'direction'.

to make a character solid you actuallt have to program it into the thing that cannot go through it rather than the solid sprite.


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

Board footer