Throwing or Flicking an Actor - DEMO
Hey All,
I just added a throwing/flicking demo...
http://gamesalad.com/game/play/30692
Throwing/Flicking an Actor - first attempt
This demo show a way that can be used to "throw" or "flick" an actor. I turned gravity on just for fun.
This can be used as a way to throw a ball/projectile in a game. By turning gravity off, it is a way to create a bowling or shuffle puck game as well.
Feel free to use this in any way you see fit.
This is my first attempt at this. Sometimes it seems a little wonky to me. Feel free to add improvements and let me know.
Good luck!
Joe
Fire Maple Games
I just added a throwing/flicking demo...
http://gamesalad.com/game/play/30692
Throwing/Flicking an Actor - first attempt
This demo show a way that can be used to "throw" or "flick" an actor. I turned gravity on just for fun.
This can be used as a way to throw a ball/projectile in a game. By turning gravity off, it is a way to create a bowling or shuffle puck game as well.
Feel free to use this in any way you see fit.
This is my first attempt at this. Sometimes it seems a little wonky to me. Feel free to add improvements and let me know.
Good luck!
Joe
Fire Maple Games
This discussion has been closed.
Comments
niceone.
I played around with it on my phone, and personally, I changed the amplification up to 8, and friction up to 60, it felt more natural to me, but that's just my taste.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Thanks for all the help!
you could have a global boolean attribute called "hasCrossedLine", leave it set to FALSE.
if the X or the Y position, whatever you're checking for, of the Actor crosses it, set hasCrossedLine to TRUE.
In the rule where it throws the actor, the one with the change velocity, add a condition there that says:
When hasCrossedLine is FALSE
Then create a separate rule that says:
When hasCrossedLine is TRUE
Change Velocity ( use can copy and paste the same one)
That should do it for you.
Or something along those lines.
seems a little better...
When I copy the rules for the ball from the demo to my GS game, they copy fine, but once the actor is closed any attempt to open the actor again or preview the game results in a complete GS crash. I have manually added in the attributes before copying the rules, but I still get a complete GS crash, any suggestions as to why this might be and how to fix it?
Thanks