Jump to content

Simulate Pendulum in Arcade Physics


Jack0815
 Share

Recommended Posts

Hi Folks,

I am developing a free game with the phaser framework. On my startScreen I want to have some kind of Army-Tags that are pinned to my background. To make it more fun I would like to have them swing with moving my phone.

I have no Problems getting the phone angle, neither making it swing with yoyo-tweens ... but ... when I want to adjust the angle of the sprite in the update phase (according to the phone-angle), this interfers with the swinging tween. Does anyone have a easy solution? Interrrupting the tween and changing the rotation doesn´t work. Or is there a way to place a changing variable in the tweens porperty?

I also played around with p2 a bit, but just for some gimming I don´t want to include p2 into the game.

Would be nice to find a solution. Although it is just a gimming, I would really like to have it in the game.

Greetz

Jack

 

PS: added a screenshot of the homescreen to clarify my needs

post-11335-0-47018000-1414486244.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...