Actor rotation Constrained
mrpacogp
Member Posts: 400
Good Morning!
I `m trying to set before the cannon another actor constrained but it feel very ugly. What is your opinion?
https://www.dropbox.com/s/8m0uw5y8op794vp/Para pruebas.gameproj.zip
Thank you very much
I`m testing some values, and that what i have share is the best movement i have found it, but i`m sure is another way to do it better and save memory or something...
Thank you for share your opinion.
I `m trying to set before the cannon another actor constrained but it feel very ugly. What is your opinion?
https://www.dropbox.com/s/8m0uw5y8op794vp/Para pruebas.gameproj.zip
Thank you very much
I`m testing some values, and that what i have share is the best movement i have found it, but i`m sure is another way to do it better and save memory or something...
Thank you for share your opinion.
Comments
real attribute and when touch is pressed constrain > vectorToAngle (mouseX-cannonX,mouseY-cannonY)
I`m trying to do it same as angry birds, but this time with a cannon.
I want to do it my self with the help of this community, its what i think its better to learn more.
as you can see I put a lot of effort to what the camera movement
http://arcade.gamesalad.com/g/74914
Sometimes return to scene origin x and y, and another times makes a zoom whenever he want.
I dont know whats about camera. Its stupid .
Constraining finally solves, this is my best friend ^^
http://gamedev.tutsplus.com/tutorials/from-scratch/angry-snowman-build-an-angry-birds-game-from-scratch-setup-and-shooting/
I know that template, and its cool, but i want to try something different.
I have it working, but got 30fps and i think i have to search for a best way.
I have alot of thinks working, in about 2 weeks i can end my own game, but want to do the thinks on the correct way, and in this moment dont like what i have show you.
Thank you anyway for answers.
I have to do a poll to decide the name, "ufo survival" (lol its one at app store!!!) "ufo strikes" "somethings angry" "planet survival"...
Anyone have a better idea without buying a template?
http://forums.gamesalad.com/discussion/29542/angry-birds-template-hd-10-cheap
Still working on this about to end, but dont like the system...
Attrib for cannon = distanfrommouse
Constrain distancefrommouse = mouseposx-cannonselfx
Create rule if distanfrommouse>10 and <100 you can shoot, otherwise not.
Do the same for Y
Its a way to do it better? maybe using rotation of cannon around mouse position?