Actor rotation Constrained

mrpacogpmrpacogp Member Posts: 400
edited December 2012 in Working with GS (Mac)
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.

Comments

  • DanielDoeDanielDoe Member Posts: 307
    Make a zip file of project... otherwise we can't download it from dropbox.
  • mrpacogpmrpacogp Member Posts: 400
    Done.
  • DanielDoeDanielDoe Member Posts: 307
    What do you mean by "feel very ugly?" It looks ok. But the easiest way to do it is to make a rotation:
    real attribute and when touch is pressed constrain > vectorToAngle (mouseX-cannonX,mouseY-cannonY)
  • mrpacogpmrpacogp Member Posts: 400
    Hmmm, let me test it.
    I`m trying to do it same as angry birds, but this time with a cannon.
  • DanielDoeDanielDoe Member Posts: 307
    aaa.... I didn't understand... I think that it's better to buy complete angry birds template than make it yourself. There are many of them... I found this one in 10 seconds:



  • mrpacogpmrpacogp Member Posts: 400
    Yes, i can buy it, but dont its for money.
    I want to do it my self with the help of this community, its what i think its better to learn more.
  • Yovanny369Yovanny369 Member Posts: 105
    I have done something similar
    as you can see I put a lot of effort to what the camera movement

    http://arcade.gamesalad.com/g/74914
  • mrpacogpmrpacogp Member Posts: 400
    edited December 2012
    I`m testing some values for the camera.
    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 ^^
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    edited December 2012
  • mrpacogpmrpacogp Member Posts: 400
    edited December 2012
    Thank you very much for your answered.
    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"...
  • mrpacogpmrpacogp Member Posts: 400
    I`m changing alot of values and no one like it....
    Anyone have a better idea without buying a template?
  • mrpacogpmrpacogp Member Posts: 400
    On this thread i have to assume this template is from one scammer or something
    http://forums.gamesalad.com/discussion/29542/angry-birds-template-hd-10-cheap

    Still working on this about to end, but dont like the system...
  • mrpacogpmrpacogp Member Posts: 400
    Maybe this can be a good idea, work but what do you think?
    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?
Sign In or Register to comment.