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

#1 2010-06-08 20:25:40

s2o7
Scratcher
Registered: 2010-06-08
Posts: 3

A little help on my game please: Bomberman

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

 

#2 2010-06-08 20:48:35

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

Re: A little help on my game please: Bomberman

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)


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

Offline

 

#3 2010-06-09 00:23:59

s2o7
Scratcher
Registered: 2010-06-08
Posts: 3

Re: A little help on my game please: Bomberman

thanks brother!

Offline

 

#4 2010-06-09 02:56:51

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A little help on my game please: Bomberman

or make sensors.


You can now reach me on Twitter @johnnydean1_

Offline

 

#5 2010-06-09 07:05:54

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

Re: A little help on my game please: Bomberman

johnnydean1 wrote:

or make sensors.

Yeah that works too.


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

Offline

 

#6 2010-06-09 15:39:31

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: A little help on my game please: Bomberman

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  smile

But you're right, I'll move this to All About Scratch - it's not a problem  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

Board footer