How do I get my player to orient to player angle.

0 favourites
  • 5 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • I designed a simple non-platform game where a plane orients toward a monster and when you use a touch screen and touch a monster the plane properly orients toward the monster (Touch.X and Touch.Y) however when you release off the touch pad, the plain goes back to a weird fixed angle rather than staying at the last angle oriented toward when touching the screen?

    2nd issue, I have an original iPad and the sounds do not work. I have uploaded it properly and both .ogg and .mp4 files are on the apache2 webserver on a linux server however it works on the PC but sound does not work on the iPad.

    Here is the link to the source. Please help! Thanks!

    kevintown.net/KevinWars1.0.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you stop touching, Touch.X and Touch.Y become 0. Would be better to make global variables and store Touch.X and Touch.Y when the touch object fires the on any touch start event.

  • Thanks but I am so new at this not sure how to do it. Did you see my code I attached? If you can perhaps tell me specifically how to do it. I can create a global variable its just a matter of how to make it work with the player object im lost.

    In addition, I don't get sound on my iPad. I have uploaded the ogg and mp4 files as well.

  • Like this:

    <img src="http://www.infinitepossibilitygames.com/demos/TouchCapture/touchexample.PNG" border="0" />

    As for the iPad sound issue...I actually don't have any iOS devices, so I haven't do any development there. I'm sure someone else can help more with that.

  • Thanks so much theubie! It worked! Yes all I need now is to figure out why sound does not work on the iPad and im golden!

    I assume for a platform-style game a similar convention would be taken?

    What specifically would I put so that a player on a platform moves to where i click on a touchpad?

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