Table Tennis Game

Forum Home Forum Home > Construct 2 General > Your Creations
 Post Reply Post Reply
Author
4,319 Rep
Post Options Post Options   Quote chrisbrobs Quote  Post ReplyReply Direct Link To This Post Topic: Table Tennis Game
    Posted: 10 Aug 2012 at 12:12am
Table tennis game I am trying to make....Playable demo



Unsuprisingly its not finished...but you can try it here-

Test

(the ball speed increases after every shot)

Any feedback welcome.
http://www.youtube.com/user/johnbrobs
Back to Top
1,337 Rep
Post Options Post Options   Quote Zero6 Quote  Post ReplyReply Direct Link To This Post Posted: 10 Aug 2012 at 1:03am
I can hit the ball even if it's on the other player's side :)
Back to Top
4,319 Rep
Post Options Post Options   Quote chrisbrobs Quote  Post ReplyReply Direct Link To This Post Posted: 10 Aug 2012 at 1:55am
Originally posted by Zero6 Zero6 wrote:

I can hit the ball even if it's on the other player's side :)


Whoops
Thanks for pointing that out...will fix it.

Regards

Edited by chrisbrobs - 10 Aug 2012 at 1:56am
http://www.youtube.com/user/johnbrobs
Back to Top
4,319 Rep
Post Options Post Options   Quote chrisbrobs Quote  Post ReplyReply Direct Link To This Post Posted: 10 Aug 2012 at 9:39am
Zero6@
'I can hit the ball even if it's on the other player's side :)'

Sorted problem...added speed score at the end.
http://www.youtube.com/user/johnbrobs
Back to Top
8,005 Rep
Post Options Post Options   Quote Rory Quote  Post ReplyReply Direct Link To This Post Posted: 10 Aug 2012 at 10:48am
Its very nice now! good job.

EDIT: Would be nice if you didn't need to click so much :) like using motions to hit the ball instead

Edited by Rory - 10 Aug 2012 at 10:48am
Back to Top
4,319 Rep
Post Options Post Options   Quote chrisbrobs Quote  Post ReplyReply Direct Link To This Post Posted: 10 Aug 2012 at 12:47pm
Originally posted by Rory Rory wrote:

Its very nice now! good job.

EDIT: Would be nice if you didn't need to click so much :) like using motions to hit the ball instead


Thought about going down that road, but it needs the 'click' event to enable groups/ detect collisions/ ball shadows etc.

Next part is coding events for the player serve....nightmare.

Thanks for testing.

Edited by chrisbrobs - 10 Aug 2012 at 12:47pm
http://www.youtube.com/user/johnbrobs
Back to Top
6,521 Rep
Post Options Post Options   Quote gonzdevour Quote  Post ReplyReply Direct Link To This Post Posted: 29 Aug 2012 at 4:53am
It looks great!

May I ask any tip of how to make the ball bouncing like it's in 3D world?
I am curious if there's any formula can get the accurate position and size of moving bouncing ball with possible perspective angles.
Back to Top
1,421 Rep
Post Options Post Options   Quote KidsOnTheBeat Quote  Post ReplyReply Direct Link To This Post Posted: 29 Aug 2012 at 7:24pm
Neat proof of concept, although the ball motion physics are a little bit wonky/floaty.

I'd also suggest that you be able to hit the ball without having to click the mouse.
Back to Top
4,319 Rep
Post Options Post Options   Quote chrisbrobs Quote  Post ReplyReply Direct Link To This Post Posted: 29 Aug 2012 at 8:31pm
gonzdevour@
It looks great!
May I ask any tip of how to make the ball bouncing like it's in 3D world?
I am curious if there's any formula can get the accurate position and size of moving bouncing ball with possible perspective angles.

(I will post you an example capx when I get the time)

KidsOnTheBeat@
Neat proof of concept, although the ball motion physics are a little bit wonky/floaty.

(The players initial strike does need tweaking)

I'd also suggest that you be able to hit the ball without having to click the mouse.

(It would make it too easy to hit the ball back?)
----------------------------------------------------------

I managed to create the events for the 'computer' serve.



1, Click button A for a random serve(you or computer)

2, Click button B to test your return serve reflexes.
The machine will serve a ball at a random speed, that you have to return.

Play

WIP

Edited by chrisbrobs - 29 Aug 2012 at 8:41pm
http://www.youtube.com/user/johnbrobs
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down