Discuss Scratch

Viradan
New to Scratch
9 posts

I keep going in circles and create more problems i

Chazmaster2000
Scratcher
8 posts

I keep going in circles and create more problems i

<button>Click Here</button>

when green flag clicked
if <(username) = Chazmaster2000> then

play sound [cool v]
switch costume to [CHAZ v]
repeat (10)

say [Chazmaster2000] for (1) secs
delete this clone
end
wait until <key [space v] pressed?>
change [blur v] effect by (25)
end
repeat (10)

create clone of [myself v]
wait (0.01) secs
end
stop [Donald Trump v] from [becoming president v]
when I start as a clone
forever

glide (pick random (0.25) to (2.5)) secs to x: (pick random (-240) to (240)) y: (pick random (-180) to (180))
end
Script_Helper
Scratcher
100+ posts

I keep going in circles and create more problems i

Viradan
New to Scratch
9 posts

I keep going in circles and create more problems i

Your text to link here…

Currently, my lives deduct inconsistently. Sometimes -1 and sometimes -2.
Also trying to figure out how to just shoot 1 ball at a time…i dont want to be able to hold spacebar down and get a long stream of balls.
And finally, even when game is over, i can still shoot balls and I don't want that to happen.
Uniquename1
Scratcher
100+ posts

I keep going in circles and create more problems i

Assuming we start out knowing what we're doing it'd be nice to have a plan and anticipate all the interactions and things we'll need later but we're mostly all learning as we go. And even still I always wish i'd thought of this that or the other thing to keep it simpler and all work together. deducting too much or inconsistantly usually happens when two things are touching over some amount of time. they can either change the score or lives themselves one time before deleting or they can delete 1 and then wait until not touching or wait until not whatever is happening before they do anything else so they only subtract 1.

Similar wait until not space bar down will only shoot 1 at a time other wise a wait 1 or .3 seconds gives a good fire rate. just letting it go unchecked is 33 per second or .03 seconds which can reach your clone limit.

Game over stuff, you may as well stop all. I don't see a need for a restart button, might as well leave a flashing pointer pointing at the green arrow saying play again. Other wise all the stuff can initialize and set up under a broadcast and you can rebroadcast that. Further an if pause variable equals yes or no around everything is one of those things I often wish i'd included from the start.

Try my games.
Scratch Sprite Club VI Soccer
Star Fighter Shooting
Space Marines: Boarding Party Strategy
Lion Runner Running/ Platformer
Viradan
New to Scratch
9 posts

I keep going in circles and create more problems i

Thanks for the help both of you - getting it there slowly but surely.
Viradan
New to Scratch
9 posts

I keep going in circles and create more problems i

Got most everything cleaned up but cannot get lives to deduct consistently. If I do not shoot at all it deducts like it should passing the bottom edge. But if I shoot, anything happens- deducts 1-3 randomly and even deducts a life when ball hits nothing.

Last edited by Viradan (Jan. 5, 2018 02:43:39)

Powered by DjangoBB

Standard | Mobile