randomdude wrote:
I have got two question. With my posts of the masking the variables and the advice you gave me, its working great. Yet, when I post th project on the website, the "masker" is not "masking". Instead, its position has changed (it went lower). Also, I was adding music into my game. How would make it that when m is pressed, it would play music and then if n was pressed, it would play music but stop the other music that is playing.
okay thats hard. i forget what i told you about "masking?" variables.You mean it goes lower? try this. hopefully this ansswers ur question.
<when green flag clicked>
<set{your variable}to(0)>
to ur other question:
<when[m]key pressed>
<play sound[song1]>
<when[n]key pressed>
<stop all sounds>
<wait(0.01)secs>
<play sound[song2]>
The second wait is VERY IMPORTANT! if you dont do that, the song 2 may not play.
Offline
SirSniipesAlot wrote:
Alright ty. Now, I've gotten it all worked out except for one problem: The falling bombs in my game are supposed to explode(change to costume 2), then stop the game. For some reason this only works if the guy is moving for some reason. I want it to explode and stop the game even if he's sitting still. Any help?
okay. put platform at bottom. or very thin line. say
Bomb: whenever you want them to explode,
<go to x
place u want to fall from )y
ditto )>
<repeat until><touching[ platform ]>
<change y by(1 or 2 or 3 or 4 )>
<end>
<switch to costume[2]>
<stop all>
Hope that helps.
Offline
SirSniipesAlot wrote:
Alright I got my previous problem fixed, but the boss has given me another problem. I want him to come to the right of the screen, say a line, then start firing and stuff. My problem is that when he's saying the lines, the player can be hurt. Same thing with after he's been killed, he's supposed to say a line then move off screen. Is there any way to make him like invincible for a certain period of time?
EDIT: Nevermind, for some reason my project deleted itself![]()
Yes, but tell me when you need this to be answered.
Offline
SirSniipesAlot wrote:
Alright I got my previous problem fixed.
Now you tell me
Offline
Heybrian wrote:
SirSniipesAlot wrote:
Alright I got my previous problem fixed.
Now you tell me
![]()
Hehe...
Alright, thanks for your help so far, but I have bumped into another problem in my quest for awesomeness. When my paratrooper falls, he's supposed to change costumes to go left and rightt (to make him look like he's gliding in the respective ways) but for some reason whenever he does he kinda spazzes out between his starting position and the swing costume. Help? here's what I have so far:
[blocks]
<when I receive[ Startgame]
<forever>
<if>
<key[ left arrow ]pressed?>
<switch to costume[ turn_left]
<move( -3 )steps>
<else>
<switch to costume[ starting]
<end>
<end>
[/blocks]
Same thing for right except the "-3" is "3" and the left costumes change to right.
Offline
Thats becuase you have to say awit 0.30 seconds. or any seconds. whatever works for you. if you didnt, all that would happen in a light second. witch gets the reult of spazzing.
Offline
actully, say its a demo and post it online, and i'll figure it out
.
Last edited by Heybrian (2008-01-23 17:21:52)
Offline
No I've been at school lol
EDIT: http://scratch.mit.edu/projects/SirSniipesAlot/86190
Last edited by SirSniipesAlot (2008-01-23 21:20:30)
Offline
guess we have different timezones. by the timne you get hom from school tommorow i will hopefully have it ready
Offline
Figure it out yet?
Offline
im gettin there. got a friend over
Offline
Ah alright, take your time
Offline
its good. go check: http://scratch.mit.edu/projects/Heybrian/87735
Offline
Alright I got it working, thanks for your help
You can take the other one down if you want.
Offline
ok. dont forget to mention me in the notes for yours, and come here if you have any further questions.
Offline
Hi Heybrain!
I was wondering if you could tell me where you can report other Scratchers for offensive tags and comments. (see my topic 'Offending Tag'.) Maybe you can't report them anywhere? If you can't then I guess I should just 'ignore and delete'. But still, I'd really like to do something about it.
Thank you!
Offline
hi again! well you can delete them, and at the bottom of the page (way bottom) you'll see this blue bar and it say like privacy policy and stuff, and then contact us. before you delete the tag click "taggers" and if it says 1 tagger (scratch made it garbage)
click where it says check for taggers and find the name of who did it. delete the tag and click contact us at the bottom. say the name and say their tag was bad, and send
Offline
i'll remind when their up.
Offline
I was just wondering how you could activate [blocks]<when[ up arrow ]key pressed>[/blocks]
without pressing the up arrow key. Thanks.
Last edited by TheWrockBrothers (2008-02-02 16:30:01)
Offline
TheWrockBrothers wrote:
I was just wondering how you could activate [blocks]<when[ up arrow ]key pressed>[/blocks]
without pressing the up arrow key. Thanks.
Make a new script, activated by a message hat, with everything that was under the Up Arrow Key Pressed hat. Have the Up Arrow Key Pressed hat broadcast that message and also broadcast it from wherever else you want.
Offline
TheWrockBrothers wrote:
I was just wondering how you could activate [blocks]<when[ up arrow ]key pressed>[/blocks]
without pressing the up arrow key. Thanks.
i dont understand the question,you mean like this? <if><key[up arrow]pressed?>
Offline