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

#1 2011-03-18 04:32:51

minihydro
Scratcher
Registered: 2011-03-16
Posts: 50

I want acomputer in my game

Hi there i want a computer character in the game that willl runaway but how can you do it i dont know.

pls reply,

Offline

 

#2 2011-03-19 02:21:05

Guinea_Pig_Girl
Scratcher
Registered: 2010-08-25
Posts: 100+

Re: I want acomputer in my game

Well, the easiest script would be:
[blocks]
<when green flag clicked>
<forever>
<point towards( Player Sprite
<turn cw( 180 )degrees>
<move( number )steps>
<end>
[/blocks]

If you had something else in mind, tell me exactly what you want and I'll try and get the script  smile

Edit: Forgot to do [/blocks] tag XD

Last edited by Guinea_Pig_Girl (2011-03-19 02:21:36)


http://img841.imageshack.us/img841/783/misstdd.png
Put this in your siggy if you miss The_Dancing_Donut!

Offline

 

#3 2011-03-20 00:35:33

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: I want acomputer in my game

I would try

<when green flag clicked>
<forever>
<if> <( <distance to[ player sprite ] <=> 20 )>
<point towards( player sprite )
<move( -*** )steps>
<end>

(p.s. the ** mean numbers.


2012--The biggest troll ever.

Offline

 

Board footer