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

#1 2010-06-09 18:54:45

GlitchSprite
Scratcher
Registered: 2010-06-08
Posts: 1000+

How to I make an enemy stay where I want it to?

I cannot seem to keep an enemy in one spot. how do I do so?


http://www.mspaintadventures.com/storyfiles/hs2/02915.gif

Offline

 

#2 2010-06-09 19:02:03

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: How to I make an enemy stay where I want it to?

I think your explanation of the problem is too vague, maybe you could elaborate a bit?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-06-09 19:04:37

GlitchSprite
Scratcher
Registered: 2010-06-08
Posts: 1000+

Re: How to I make an enemy stay where I want it to?

Yeah, I know how to make a enemy, and I know how to animate it, but I cannot get it to pop up at a certain stage. For example, I cannot get it to pop up at a certain background.


http://www.mspaintadventures.com/storyfiles/hs2/02915.gif

Offline

 

#4 2010-06-09 19:13:58

Greentabby55
Scratcher
Registered: 2010-05-04
Posts: 50

Re: How to I make an enemy stay where I want it to?

Try using Broadcasting.

<when[ Stage ]clicked>
<next costume>
<if><( background # <=> 2 )>
<broadcast[ Enemy_Appear
<end>

Now, here's the script to put into the enemy.

<when green flag clicked>
<hide>

<when I receive[ Enemy_Appear
<show>

Offline

 

#5 2010-06-09 19:18:52

GlitchSprite
Scratcher
Registered: 2010-06-08
Posts: 1000+

Re: How to I make an enemy stay where I want it to?

It worked, thanks!


http://www.mspaintadventures.com/storyfiles/hs2/02915.gif

Offline

 

#6 2010-06-11 18:13:25

MasterOfDeception
Scratcher
Registered: 2009-12-29
Posts: 100+

Re: How to I make an enemy stay where I want it to?

You could also use

{if <level = 2>}
        [show]
{else}
        [hide]
{end}


"My Language Arts teacher beat Chuck Norris up." -12three

Offline

 

Board footer