Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Help? (https://forums.graalonline.com/forums/showthread.php?t=80809)

Imperialistic 07-24-2008 10:11 PM

Help?
 
Not really sure how to start on this, and the Wiki doesn't help me out at all with what I'm looking for..

I'm interested in making something such as like a pitcher pitching the baseball.. and how how he has to aim.. Is there a way to merge that with Graal, I think I have seen it before..

Aiming: Slightly difficult and maybe its a bit un-steady were the player would need to get it into the certain "box" area or w/e..

Can someone maybe show me a template or tell me how I would go about scripting this..

excaliber7388 07-24-2008 10:27 PM

Just define an area where the mouse could click in, and every time the mouse is clicked, send the ball, and check if it was in the designated strike zone.

Imperialistic 07-24-2008 11:44 PM

That's basically defining what I just said into a better explanation.. How would I go about defining an "area where the mouse could click in".. And I want it to be harder than just clicking the designated area and have the ball fly there.. It needs to be more difficult

zokemon 07-25-2008 12:52 AM

We aren't going to design your idea for you. Give us an exact idea what you want before making ambiguous requests.

Imperialistic 07-25-2008 01:45 AM

I have my own idea what do you not get, want me to get more specific?

Maybe crosshairs and the crosshairs move back and forth, up and down and what not.. and you have to struggle and get the crosshairs into the designated area "circle or square in the middle" and click and the ball goes flying and if you make it in the designated area, I guess I can go from there..

Kristi 07-25-2008 03:35 PM

you can use overshoot physics, and can adjust the constant based on how difficult you want it to be.

Basically, the cursor follows the mouse movement on an imaginary spring (like a bungee cord), and when you stop, it continues in motion until it reaches the max spring potential and recoils back.

You can also add random "collisions", ie induce a hit at a random angle to modify the x,y velocity unpredictably. You see this in those "Drunk pee" flashes.

You can also model the same idea as an acceleration model.

Quote:

Originally Posted by excaliber7388 (Post 1407974)
Just define an area where the mouse could click in, and every time the mouse is clicked, send the ball, and check if it was in the designated strike zone.

That is basically what he said. Stop postcounting++

Quote:

Originally Posted by zokemon (Post 1408042)
We aren't going to design your idea for you. Give us an exact idea what you want before making ambiguous requests.

His idea was reasonably clear. If you want to be snarky to others, learn how to read first.

LoneAngelIbesu 07-25-2008 07:06 PM

Imp just learned how to use triggers, and you use words like overshoot physics, random collisions, and acceleration model. >_<

To define a target area, you can use the simple mousex(/y) in |int, int|, in a timeout. As for aiming difficulty, I'm not sure how to that. I think that's where the fancy words Hell Raven uses comes in.

Sorry if this is just rewording. :cool:

Kristi 07-25-2008 07:16 PM

I can model some example equations when I get home from work :)

Imperialistic 07-25-2008 09:29 PM

Quote:

Originally Posted by LoneAngelIbesu (Post 1408283)
Imp just learned how to use triggers, and you use words like overshoot physics, random collisions, and acceleration model. >_<

To define a target area, you can use the simple mousex(/y) in |int, int|, in a timeout. As for aiming difficulty, I'm not sure how to that. I think that's where the fancy words Hell Raven uses comes in.

Sorry if this is just rewording. :cool:

Okay I see, I will start working on some stuff and maybe post later..

Quote:

Originally Posted by Kristi (Post 1408289)
I can model some example equations when I get home from work :)

Cool thanks Josh, seems like you're the only one understanding.


All times are GMT +2. The time now is 01:15 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.