Discuss Scratch

for0012
Scratcher
15 posts

SCRIPT HELP URGENT SCRIPT HELP

Hey all ! There is a draft of my fluro Air Hockey on my profile.
I need help on making a script so that i can use my red paddle as a computer.
Also a script so that both paddles dont pass the half way line.
Please comment adivce and help.
Thank you guys
dracae
Scratcher
1000+ posts

SCRIPT HELP URGENT SCRIPT HELP

This project is coming along nicely!
Anyways, just have:

The paddle can only move left if it is not past the halfway mark.
for0012
Scratcher
15 posts

SCRIPT HELP URGENT SCRIPT HELP

Could you please explain on how to the script ?
dracae
Scratcher
1000+ posts

SCRIPT HELP URGENT SCRIPT HELP

for0012 wrote:

Could you please explain on how to the script ?

What do you mean?
I'll be glad to help!
for0012
Scratcher
15 posts

SCRIPT HELP URGENT SCRIPT HELP

Like how do you make player blue paddle not move pass the half way line.
dracae
Scratcher
1000+ posts

SCRIPT HELP URGENT SCRIPT HELP

Well, the halfway line is at x=0, so the moving left script only works if the player is to the RIGHT of the x=0 line.
Is this what you need? Hope it helps!
for0012
Scratcher
15 posts

SCRIPT HELP URGENT SCRIPT HELP

Haha sorry man but could you say it in the form of a script design ?
dracae
Scratcher
1000+ posts

SCRIPT HELP URGENT SCRIPT HELP

for0012 wrote:

Haha sorry man but could you say it in the form of a script design ?
I'm sorry, but I don't really understand?
for0012
Scratcher
15 posts

SCRIPT HELP URGENT SCRIPT HELP

Hmm i need a SCRIPT so that the blue paddle player 1 Doesnt cross the half way line
Sorry im not that understanding.
dracae
Scratcher
1000+ posts

SCRIPT HELP URGENT SCRIPT HELP

I have a picture of the script in my first post…?
: |
for0012
Scratcher
15 posts

SCRIPT HELP URGENT SCRIPT HELP

I am not able to view it :'(
dracae
Scratcher
1000+ posts

SCRIPT HELP URGENT SCRIPT HELP

In that case, just use this link: http://tinypic.com/r/2yvuh09/5
for0012
Scratcher
15 posts

SCRIPT HELP URGENT SCRIPT HELP

Thanks buddy thanks for your help
dracae
Scratcher
1000+ posts

SCRIPT HELP URGENT SCRIPT HELP

for0012 wrote:

Thanks buddy thanks for your help

I'm glad I could help!
Shadow_Gaming
Scratcher
9 posts

SCRIPT HELP URGENT SCRIPT HELP

You can also do this:
If the half line is in the background,make it a specific color.
You then use this:
____________________________________________
Green Flag Clicked
forever if {<touching color>}
point in direction(opposite direction:90/-90)
————————————————————————-|
|repeat until {<not<touching color>>}
|move (10) steps
————————————————————————-|
_____________________________________________
This will make it so whenever the paddle touches the line,it will move away in the opposite direction,until it is not touching the line anymore
Hope this helps :)

cheddargirl
Scratch Team
1000+ posts

SCRIPT HELP URGENT SCRIPT 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