Can anyone come up with an idea how to bat and ball in a cricket game in AGS

Started by sameera, Thu 21/09/2006 12:58:31

Previous topic - Next topic

sameera

Hello Everyone,

I'm currently making a cricket game. I got a small problem. I have decided to make my game like this. Below is basically what I have decided to do.

* The person clicks the "BALL" hotspot
* The bowler animation
* Appear object
*Object move (Wait till move finish False)
*If the batsman uses the interact cursor on the object the shot animation would

Here is something to help you guys



Now you can see that your efforts to answer this question is not a waste of time.

If my suggestion is not practical can anyone come up with an idea to ball and bat

monkey0506

#1
It would be very useful if we could see what code you're currently using. And welcome to the forums. ;D

[EDIT:]

You created a thread earlier here about this same problem. You're not supposed to create multiple threads for the same problem, but since I already replied here, I won't reply to the other one. And no...I'm not a mod, so I'm not suppose to do what I'm doing right now. :D


monkey0506

I'm not entirely sure what you want...but then...I'm not entirely sure how cricket is played. :=

From what I understand, you want the user to click on "BALL", run the animation of the ball being thrown, then turn on the object which has the ball's picture on it, and if the user clicks on that object, it plays the swinging animation, and if they clicked it at the right time they will hit the ball?

That could be complicated. But do you have any code at all so far or just the idea?

R4L

If it is something like monkey said then couldn't you do this:

1) Create a varible called distance and its value could be 500
2) As the object moves, you could subtract from distance every game loop
3) Call a If statement= if ((distance < 50) && (distance >30)){
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã, //code here}
4) Call another If statement for strike= if (distance < 30) {
                                                              //code here}


Not sure if something like that would work, but you could try something like it.


SilverWizard_OTF

Could you tell us cricket's rules; This will help us to realise exactly what you want to do :)
"All we have to decide is what to do, with the time that is given to us"

Ashen

Since sameera has released a cricket game, I'm guessing this is solved.
sameera: If so, can you update the topic in the first post accordingly? Thank you.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk