Discuss Scratch

for0012
Scratcher
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.
dracae
Scratcher
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. : |
for0012
Scratcher
15 posts

Script HELP !! Air Hockey Need Help

Okay no worries i will post now thanks
dracae
Scratcher
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!
for0012
Scratcher
15 posts

Script HELP !! Air Hockey Need Help

Is it possible if you can tell me a script because im really confused
mitchboy
Scratcher
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!
ErnieParke
Scratcher
1000+ posts

Script HELP !! Air Hockey Need Help

mitchboy wrote:

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!
Fixed.

With regards,

ErnieParke
mitchboy
Scratcher
1000+ posts

Script HELP !! Air Hockey Need Help

ErnieParke wrote:

mitchboy wrote:

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!
Fixed.

With regards,

ErnieParke
Thanks.

I don't like how this new DjangoBB works.
ErnieParke
Scratcher
1000+ posts

Script HELP !! Air Hockey Need Help

mitchboy wrote:

ErnieParke wrote:

mitchboy wrote:

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!
Fixed.

With regards,

ErnieParke
Thanks.

I don't like how this new DjangoBB works.
I don't like it entirely either, though hopefully some patch will come in the future.

With regards,

ErnieParke
for0012
Scratcher
15 posts

Script HELP !! Air Hockey Need Help

Thanks heaps guys much help to me and my project
dracae
Scratcher
1000+ posts

Script HELP !! Air Hockey Need Help

Glad we could help!
cheddargirl
Scratch Team
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?

Powered by DjangoBB