help move a physics obj

0 favourites
  • 7 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • I need some help.

    Im trying to create a turn based game platform / worms like.... i have a soldier with a limited revolution joint in he arms to body... works great... or not..

    So, i have a button (object) menu with 2 actions, MOVE RIGHT 1X (110 pixels) and other to atack ( create a bullet from weapon in he arms)

    When i click on the MOVE button the soldier runs too fast to position +110 pxls RIGHT the soldier goes crazy, cant stop in the exactly position i need and fall( needs to be exactly add 110 pixels RIGHT;;.. and the physics trow the man to ground.. or create some bugs movements.. etc...

    If i dont use a physics in the soldier, the movement and all runs great! but.. i loose the importants revolutions joints im my char, itens, bag.. arm movement .. etc......

    So.. anybody can help me..

    I ll post the capx if necessary.

    sorry my poor english...

    Thanks a Lot. <img src="smileys/smiley17.gif" border="0" align="middle">

    updated. capx link

    my capx

  • Yeap CAPX is neccessary

  • Yeap CAPX is neccessary

    ok.. here the capx.

    <img src="smileys/smiley2.gif" border="0" align="middle">

    capx

  • You could try this:

    1, Give the 'body' a private variable called 'move'.

    2, Add the following events:

    <img src="http://dl.dropbox.com/u/22173473/110pixels.png" border="0" />

    Hope this helps.

  • Ok...here the first sightings:

    If you set "prevent rotation" to "YES" on "body" it seems to work just fine...

  • hey cris.. thanks.. im sure its will be helpfull.

    im on streets now, tonight will try ok.

    weishaupt - thanks too ..i think this will work too..

    thanks everybody for the help. soon as possible will post the results ok?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • works great. thanks. so much!!!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)