GS Touch Hockey Template
wayneh001
Member Posts: 300
GS Touch Hockey Template uploaded.
Demonstrates multi touch, with constrained zones for each player.
http://gamesalad.com/game/play/60145
Note: I only upload templates which I create as a learning curve for my son. You are more than welcome to use the 'base templates' excluding the graphics and title.
I'd appreciate if you 're-upload' the templates back to GameSalad you change the Graphics and Title (Mr simonmagic...). If you want the PSD files for GS TapTap Runner - just ask :-)
Wayne H
Demonstrates multi touch, with constrained zones for each player.
http://gamesalad.com/game/play/60145
Note: I only upload templates which I create as a learning curve for my son. You are more than welcome to use the 'base templates' excluding the graphics and title.
I'd appreciate if you 're-upload' the templates back to GameSalad you change the Graphics and Title (Mr simonmagic...). If you want the PSD files for GS TapTap Runner - just ask :-)
Wayne H
Comments
Wondering Wayne if you would like to team up for a joint project using my Artist and Musician....not sure if you do all of that yourself etc or even try and sell your games but i think you should try and make some money from your code skills for sure.
Anyway the offers there bud....just something simple and fun.
Darren.
I do develop and sell various software and games on mixed platforms, doing the coding, graphics, music etc myself. I'd be more than happy to investigate a joint project however, as I do believe in distribution of skills and resources within a team.
My email is [wayneh0011 at googlemail.com] if you want to discuss an idea further.
Wayne
I have a question though, how did you get your puck directions to work? I couldn't figure it out
Again I appreciate your upload
In the Puck actor when the puck collides with the Player1 or Player2, you use to have a behavior accelerate. But sometimes the puck was stuck to the paddle.
To fix this I removed the accelerate and changed by two Change Attribute behaviors:
a)For Player 1 :
self.Motion.Linear Velocity.X = self.Motion.Linear Velocity.X +( self.Position.X - game.Player1X )
self.Motion.Linear Velocity.Y = self.Motion.Linear Velocity.Y +( self.Position.Y - game.Player1Y )
b)For Player 2 :
self.Motion.Linear Velocity.X = self.Motion.Linear Velocity.X +( self.Position.X - game.Player2X )
self.Motion.Linear Velocity.Y = self.Motion.Linear Velocity.Y +( self.Position.Y - game.Player2Y )
It works better, but still sometimes does not feel right.
So anyone can improve this?
Great to have a template for multi touch. Not just for hockey but for anything.
Unless one has made or attempted to tackle the issue of a two player same device game it is hard to grasp just how much of a pain in the ass it is.
I tested player 1 and was like oh this is cool, but player 2 didn't work soo goood...
Heres what I did to fix player 2:
Instead of this:
self.Motion.Linear Velocity.X = self.Motion.Linear Velocity.X +( self.Position.X - game.Player2X )
self.Motion.Linear Velocity.Y = self.Motion.Linear Velocity.Y +( self.Position.Y - game.Player2Y )
Change it to this:
self.Motion.Linear Velocity.X = self.Motion.Linear Velocity.X +(game.Player2X-self.Position.X)
self.Motion.Linear Velocity.Y = self.Motion.Linear Velocity.Y +(game.Player2Y-self.Position.Y)
Cheers
Emilio
Cheers!
not under templates
If you want a hockey template, check out eaguirre's games under his profile. I remember that he posted an AI tutorial for air hockey once.
he did say hes making the templates for his son. guess people were just leaching off the templates.