Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Script HELP !! Air Hockey Need Help
- for0012
-
15 posts
Script HELP !! Air Hockey Need Help
Hey guys i am stuck on how to make my Air hockey puck interact with my stick i am using to hit the puck.
i need a script on how to make it work. Ive tryed some motion and sensing controls but ive failed. I also need a script so that the stick doesnt go pass the half way line.
Please help its urgent.
i need a script on how to make it work. Ive tryed some motion and sensing controls but ive failed. I also need a script so that the stick doesnt go pass the half way line.
Please help its urgent.
- dracae
-
1000+ posts
Script HELP !! Air Hockey Need Help
If you could post what you have so far, I could help you more.
Until then, I apologize for not being able to help as much. : |
Until then, I apologize for not being able to help as much. : |
- for0012
-
15 posts
Script HELP !! Air Hockey Need Help
Okay no worries i will post now thanks
- dracae
-
1000+ posts
Script HELP !! Air Hockey Need Help
OK, thanks for posting it! 
First off, before we start with paddle and puck interaction, you need controls for the paddle.
So just make that little change so that the players can move the puck, and I'll help you as soon as this is done!

First off, before we start with paddle and puck interaction, you need controls for the paddle.
So just make that little change so that the players can move the puck, and I'll help you as soon as this is done!

- for0012
-
15 posts
Script HELP !! Air Hockey Need Help
Is it possible if you can tell me a script because im really confused 

- mitchboy
-
1000+ posts
Script HELP !! Air Hockey Need Help
He means you need a script to control the paddle to make it move. Like this:
When green flag clicked
go to x: (x coordinate you want) y: (y coordinate you want)
forever
if <key pressed?>
change y by (whatever number you want, positive)
if <key pressed?>
change y by (whatever number you want, negative)
if <key pressed?>
change x by (whatever number you want, negative)
if <key pressed?>
change x by (whatever number you want, positive)
Hope this helps!
When green flag clicked
go to x: (x coordinate you want) y: (y coordinate you want)
forever
if <key pressed?>
change y by (whatever number you want, positive)
if <key pressed?>
change y by (whatever number you want, negative)
if <key pressed?>
change x by (whatever number you want, negative)
if <key pressed?>
change x by (whatever number you want, positive)
Hope this helps!
- ErnieParke
-
1000+ posts
Script HELP !! Air Hockey Need Help
Fixed. He means you need a script to control the paddle to make it move. Like this:
When green flag clicked
go to x: (x coordinate you want) y: (y coordinate you want)
forever
if <key [up arrow] pressed?>
change y by (whatever number you want, positive)
if <key [down arrow] pressed?>
change y by (whatever number you want, negative)
if <key [left arrow] pressed?>
change x by (whatever number you want, negative)
if <key [right arrow] pressed?>
change x by (whatever number you want, positive)
Hope this helps!
With regards,
ErnieParke
- mitchboy
-
1000+ posts
Script HELP !! Air Hockey Need Help
Thanks.Fixed. He means you need a script to control the paddle to make it move. Like this:
When green flag clicked
go to x: (x coordinate you want) y: (y coordinate you want)
forever
if <key [up arrow] pressed?>
change y by (whatever number you want, positive)
if <key [down arrow] pressed?>
change y by (whatever number you want, negative)
if <key [left arrow] pressed?>
change x by (whatever number you want, negative)
if <key [right arrow] pressed?>
change x by (whatever number you want, positive)
Hope this helps!
With regards,
ErnieParke
I don't like how this new DjangoBB works.

- ErnieParke
-
1000+ posts
Script HELP !! Air Hockey Need Help
I don't like it entirely either, though hopefully some patch will come in the future.Thanks.Fixed. He means you need a script to control the paddle to make it move. Like this:
When green flag clicked
go to x: (x coordinate you want) y: (y coordinate you want)
forever
if <key [up arrow] pressed?>
change y by (whatever number you want, positive)
if <key [down arrow] pressed?>
change y by (whatever number you want, negative)
if <key [left arrow] pressed?>
change x by (whatever number you want, negative)
if <key [right arrow] pressed?>
change x by (whatever number you want, positive)
Hope this helps!
With regards,
ErnieParke
I don't like how this new DjangoBB works.
With regards,
ErnieParke
- for0012
-
15 posts
Script HELP !! Air Hockey Need Help
Thanks heaps guys much help to me and my project 

- cheddargirl
-
1000+ posts
Script HELP !! Air Hockey Need Help
You seem to have so many topics for getting scripting help on the same project. That creates a lot of forum clutter very quickly.
It's usually better to stick to one topic - how about revising your original topic describing all the problems you need help with in terms of scripting?
It's usually better to stick to one topic - how about revising your original topic describing all the problems you need help with in terms of scripting?

- Discussion Forums
- » Help with Scripts
-
» Script HELP !! Air Hockey Need Help