I recently made a bomberman game for my school project, I made sprites for the blocks that can be blown up and sprites for blocks that cannot be blown up (like any traditional bomberman game)
the problem i am experiencing is that my dude that i navigate is able to walk through all the blocks, and that can't do, because it defeats the purpose of the game; to give you an idea of what i mean, i uploaded the game for you guys to see:
http://scratch.mit.edu/projects/s2o7/1095714
that's the main problem, i don't know how to set the code so that bomberman cannot walk through blocks.
Any feedback/advice would be really helpful thank yo
Offline
This should be in ALL ABOUT SCRATCH, but I will still help you.
This is how you do it (using what you originally had):
When [up arrow] pressed
If <not <touching color [the color of the blocks]> >
||move (10) steps
||point in direction (0)
end if
Does that help?
Last edited by ScratchReallyROCKS (2010-06-08 20:48:56)
Offline
or make sensors.
Offline
johnnydean1 wrote:
or make sensors.
Yeah that works too.
Offline
ScratchReallyROCKS wrote:
This should be in ALL ABOUT SCRATCH
Please use the report button for requesting thread moves - it makes it a lot easier for us moderators - we have to read through lots of posts, so a report stands out more. Thanks
But you're right, I'll move this to All About Scratch - it's not a problem
Offline