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

#1 2011-05-25 09:29:29

Pivot_Trainee
Scratcher
Registered: 2011-05-04
Posts: 1

Help!

I'm working on a couple of games right now, and I can't make anything seem like it's taking hits. Example- I'm making a second (and hopefully better) Axelay clone. the enemy is scripted to change costumes so that it changes colors when it gets hit. However, it won't do that! Can someone tell me how to make this work?please?
P.S- if anyone does help, thanks in advance!---------------------------------------------------------
P.S.S- here's a copy of the script i need help on----------------------------------------------------
<when green flag clicked>
<if touching Sprite3>                                    <if touching Sprite5>
<switch to costume2>                                  <switch to costume2>
<wait 0.01 secs>                                           <wait 0.01 secs>
<switch to costume1>                                   <switch to costume1>
--------------------------------                                 ---------------------------------------------------
<if touching Sprite4>                                     <if touching Sprite6
<switch to costume2>                                    <switch to costume2>
<wait 0.01 secs>                                            <wait 0.01 secs>
<switch to costume1>                                    <switch to costume1>
--------------------------------

Offline

 

#2 2011-05-25 16:11:39

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

Re: Help!

I think you may be waiting too short... Try changing it to 0.1 seconds.  smile

After that, I'd make sure you have the right costumes, or perhaps use the "colour" effect instead (under the "looks" tab).

Offline

 

#3 2011-05-25 16:58:31

EzekielE
Scratcher
Registered: 2010-09-26
Posts: 100+

Re: Help!

<when green flag clicked>

<forever>

<if touching Sprite3>                                    <if touching Sprite5>
<switch to costume2>                                  <switch to costume2>
<wait 0.1 secs>                                           <wait 0.1 secs>
<switch to costume1>                                   <switch to costume1>
--------------------------------                                 ---------------------------------------------------
<if touching Sprite4>                                     <if touching Sprite6
<switch to costume2>                                    <switch to costume2>
<wait 0.1 secs>                                            <wait 0.1 secs>
<switch to costume1>                                    <switch to costume1>
--------------------------------
<end>

Last edited by EzekielE (2011-05-25 17:28:51)


http://mag.racked.eu/cimage/i2260/Achievement++get%21/Find+a+Disk/mca.pnghttp://ezekielelin.com/1x1Gif/image.php

Offline

 

#4 2011-05-25 17:24:23

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Help!

I'd agree with coolstuff - it's probably changing so fast, you can't even see it.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer