How to enter the circle.

LordTarantorLordTarantor Member, PRO Posts: 890
edited November -1 in Working with GS (Mac)
Ok let say that I have a hockey game. The goal is a circle but has a small opening. The circle is rotating so you have to shoot when the opening is facing you.
How can I create this rotating circle with this opening.

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    in shared projects search "chainsaw demo." You're probably thinking WTF????!!

    Trust me it will give you what you need.
  • LordTarantorLordTarantor Member, PRO Posts: 890
    scitunes, you have helped me so many times that I going to start calling my game, our game...
    That helped me in the rotation part. Now I need to know how to create the circle that will hold the hockey pellets or tablets (I don't know the name of the hockey piece).
    Is one circle with one small opening, the circle is going to be rotating, both players are going to try to insert the hockey thing inside the circle. How can I make this circle?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I have no idea how to do what you want but i think when you say the "hockey thing" or "hockey pellets or tablets" your meaning hockey puck. ;)
  • LordTarantorLordTarantor Member, PRO Posts: 890
    Hockey puck... Thanks man, the important thing is to help anyway you can, right?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Yeah no doubt. I would think to do what you want you might set it up so that when puck is within a certain xy position and the rotation of the goal is a certain position you could set the puck to destroy and it might appear as though it went in. You would probably have to setup a game attribute that matches the goals rotation since you cant make the puck access other actor attributes. and then you would just have to figure out what x and y values you want you may even be able to change the collision attributes based on all of those same values so that the puck doesnt bounce and not destroy the puck until it goes "in" or under the goal actor. Good Luck
  • JackBQuickJackBQuick Member Posts: 524
    You could try something like this:

    He shoots, he scores!

    I made the door actor pink to show you how this works but you probably want to make it transparent :)
  • eaguirreeaguirre Member Posts: 89
    i used this code for my Brick Hockey:
    http://itunes.apple.com/us/app/brick-hockey/id381909637?mt=8

    So the demo is here: http://gamesalad.com/game/play/75640

    Cheers,

    Emilio
  • LordTarantorLordTarantor Member, PRO Posts: 890
    Wow guys thanks a lot and Jack great idea, just what I was looking for.
    Thanks
  • LordTarantorLordTarantor Member, PRO Posts: 890
    Emilio esto era... this is exactly the kind of example I was after. Thanks a lot.
  • JackBQuickJackBQuick Member Posts: 524
    @eaguirre - Nice app! You can always trust Canadians to pipe up when the topic is hockey :)

    @LordTarantor - Glad to help but you probably want to study eaguirre's demo more than mine -- eaguirre's works but mine has a few things to work out in it.
  • eaguirreeaguirre Member Posts: 89
    @ LordTarantor - De nada :)
    @JackBQuick - Thanks. Go Habs Go!

    Look at the creator1 actor that's the one that puts all together. The brick1 actor is a rectangle but the graphic gaves him a round look. Creator1 spawn several brick1 around it's center and each bricks knows where and how to rotate. When all bricks are created, the Creator1 is deleted.
    Hope this helps. you can use all the content in the demo as you like. Just change the graphics a little bit. ;)
  • rmantechrmantech Member Posts: 7
    Hi thanx for the template but when i Click download template it downloads it as a .game not a gamesalad project please help!
  • simo103simo103 Member, PRO Posts: 1,331
    rmantech .. change the .game part of the name to .zip then double click. It will unzip (as it is a compressed file) into a game salad project file that will open for you to view and edit.
Sign In or Register to comment.