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

#1 2012-03-22 10:51:05

shorock96
New Scratcher
Registered: 2012-03-22
Posts: 1

comment faire un mur|how to make a wall

salut a tous j'aimerais bien savoir comment faire un mur ou des plate forme pour un jeu merci de l'aide
shorock96

hello everyone  I would like to know how to make a wall or platform for a game thank you for help
sorock96

Offline

 

#2 2012-03-22 15:20:02

Indiego
New Scratcher
Registered: 2012-02-27
Posts: 61

Re: comment faire un mur|how to make a wall

shorock96 wrote:

salut a tous j'aimerais bien savoir comment faire un mur ou des plate forme pour un jeu merci de l'aide
shorock96

hello everyone  I would like to know how to make a wall or platform for a game thank you for help
sorock96

One of the easier ways to make a solid object would be to but something like this isnto your script:

when gf clicked
forever
if <key [right arrow v] pressed?>
change x by [10]
if <touching color of solid wall>
change x by [-10]
end
end
if <key [left arrow v] pressed?>
change x by [-10]
if <touching color of solid wall>
change x by [10]
end
The same theory works for jumping  smile

Offline

 

#3 2012-03-22 17:13:10

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: comment faire un mur|how to make a wall

Indiego wrote:

shorock96 wrote:

salut a tous j'aimerais bien savoir comment faire un mur ou des plate forme pour un jeu merci de l'aide
shorock96

hello everyone  I would like to know how to make a wall or platform for a game thank you for help
sorock96

One of the easier ways to make a solid object would be to but something like this isnto your script:

when gf clicked
forever
if <key [right arrow v] pressed?>
change x by [10]
if <touching color of solid wall>
change x by [-10]
end
end
if <key [left arrow v] pressed?>
change x by [-10]
if <touching color of solid wall>
change x by [10]
end
The same theory works for jumping  smile

This is very useful for a pacman game, so then you won't get stuck in walls.

Offline

 

#4 2012-03-22 19:12:57

Indiego
New Scratcher
Registered: 2012-02-27
Posts: 61

Re: comment faire un mur|how to make a wall

turkey3 wrote:

Indiego wrote:

shorock96 wrote:

salut a tous j'aimerais bien savoir comment faire un mur ou des plate forme pour un jeu merci de l'aide
shorock96

hello everyone  I would like to know how to make a wall or platform for a game thank you for help
sorock96

One of the easier ways to make a solid object would be to but something like this isnto your script:

when gf clicked
forever
if <key [right arrow v] pressed?>
change x by [10]
if <touching color of solid wall>
change x by [-10]
end
end
if <key [left arrow v] pressed?>
change x by [-10]
if <touching color of solid wall>
change x by [10]
end
The same theory works for jumping  smile

This is very useful for a pacman game, so then you won't get stuck in walls.

So it is  smile  Took the script from my pacman Chase game XD

Offline

 

Board footer