GS Touch Hockey Template

wayneh001wayneh001 Member Posts: 300
edited November -1 in Working with GS (Mac)
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

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Your Templates are always top quality! I will have a go later :)

    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.
  • wayneh001wayneh001 Member Posts: 300
    Thanks Darren, appreciate your comments.

    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
  • chosenonestudioschosenonestudios Member Posts: 1,714
    Hey wayne, I appreciate your upload..... As much as I wanted to take your project strip the graphics and replace it with my own.... (which was alot) I couldn't do that, it just wouldn't feel right :/

    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 :)
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    wayne you should be knighted for all these great templates you are uploading :) Gendai should build them into their updates so any newcomers to the software will have access to these right away as well as the base templates that they have done.
  • eaguirreeaguirre Member Posts: 89
    Hi,

    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?
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    Great job as usual!

    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.
  • chosenonestudioschosenonestudios Member Posts: 1,714
    eaguirre said:
    Hi,

    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?

    Hey eaguirre, For Player 1, your method works good.... For player 2 not sooo much....

    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 :D
  • eaguirreeaguirre Member Posts: 89
    Cool! thanks.

    Emilio
  • chosenonestudioschosenonestudios Member Posts: 1,714
    eaguirre said:
    Cool! thanks.

    Emilio

    Yep, No Prob

    Cheers! :D
  • osalzanoosalzano Member, PRO Posts: 136
    Has anyone tried to make a way to accelerate the puck with the paddle?
  • BoKiBoKi Member Posts: 45
    has anyone got a copy of this?
    not under templates
  • JackBQuickJackBQuick Member Posts: 524
    I did a quick search and couldn't find it either.

    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.
  • BoKiBoKi Member Posts: 45
    yeah i have noticed that "wayneh001" has deleted all his apps.
    he did say hes making the templates for his son. guess people were just leaching off the templates.
Sign In or Register to comment.