Discuss Scratch

for0012
Scratcher
15 posts

Air Hockey

Hi all im working on a project called Fluro Air Hockey !.
i need some help on how to make the puck rebound off the sticks. Ive made the puck rebound off the sides already but i also need a script on how to make the sticks have contact with the puck , so it ables it to hit the puck. PLEASE HELP !! ASAP THANKS !!
avd0001
Scratcher
2 posts

Air Hockey

maybe you could try making it so if the colour of the puck hits the couler of the stick it goes the other way or maybe use the same scripts as the ones u used for making it rebound of the wall.
Wybscrach
Scratcher
70 posts

Air Hockey

I made a little game called hockey help to help you with this. I hope it helps.
Studio42
Scratcher
500+ posts

Air Hockey

Wybscrach wrote:

I made a little game called hockey help to help you with this. I hope it helps.
I think he means at an angle and in 2d, not 1d, right?

Well

forever

if <touching [hockeystick] ?> then

point in direction (lots of maths here, I did a project that uses rebounding if you want to check it out)
repeat until <not <touching [hockeystick] ?>>
move (5) steps
end


end

end

The project I have that uses the bouncing is called circular breakout, it's on my profile.

Hope this helped!
JD918720
Scratcher
5 posts

Air Hockey

how can i make a computer player in a stickman fighting game

Powered by DjangoBB