Discuss Scratch

WIN_14S_CJP
Scratcher
2 posts

How to make a choose Car page

Hi Guys, right now I am creating a racing game project where you race a bus around a track to try to get the high score. I feel like my project needs something more so I decided along with updating the backgrounds I will try to add more cars. The problem I am having is that I want to make a page where you can choose what vehicle you want to drive. The only project I can find that does this is here but it is way too complicated for me to understand. http://scratch.mit.edu/projects/1758022/

Does anyone know a simpler way to do this? Thanks for the help.

My Project:
http://scratch.mit.edu/projects/19616484/#player
drmcw
Scratcher
1000+ posts

How to make a choose Car page

Just have a sprite for each type of car.

when I receive [car selection page v]
set [car selected v] to [0]
show
repeat until <not <(car selected) = [0]>>
if <touching [mouse v]?> then
set [brightness v] effect to (50)
else
set [brightness v] effect to (0)
end
end
when this sprite clicked
set [car selected v] to [whatever car is selected]
broadcast [car selected v]
should do as the basis if a car selection screen.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
TarzanChan
Scratcher
24 posts

How to make a choose Car page

Yeah that should work

forever
I am awesome
end

Check out my new Project Flippy Bird
smellyjelly123
Scratcher
14 posts

How to make a choose Car page

when green flag clicked
forever

if <need help = true> then
ask [for help] and wait

end

end
deck26
Scratcher
1000+ posts

How to make a choose Car page

Another option is to use ‘stamp’ and have a single car sprite with multiple costumes. Draw a sub-divided rectangle and then stamp one costume in each sub-division. Then use a Stage script to detect when the player has clicked in a certain area and use that to decide which car. Clear the backdrop afterwards and it's done.

I can make a project to demonstrate if you like.
deck26
Scratcher
1000+ posts

How to make a choose Car page

GrindScratch
Scratcher
6 posts

How to make a choose Car page

I just take one sprite, make multiple costumes, and use space to switch.

Powered by DjangoBB