Physics Test

0 favourites
  • 12 posts
From the Asset Store
Soldier Test
$9.99 USD
A Construct version 2 & 3 "Stand-alone" RPG game with "In-Game Module" (IGM) integration.
  • Remember Lunar Lander?

    A quick example to show physics in action. Control the lander with the arrow keys and land on the platform.

    Try it HERE.

    BTW I know the Physics.VelocityY is exposed but I can't seem to get it to display :(   Without it, I can't really calculate the landing velocity, which would determine if it would crash or not. Anyone else tried?

  • Pretty fun. :P

  • Why even use physics for this? The whole point of physics is for realistic interactions between moving objects. What you have here can easily be done with just 2 variables, or more easily, the custom movement behavior. Using the physics object for this isn't efficient. Not trying to be rude or anything; just trying to make you a better programmer! <img src="smileys/smiley17.gif" border="0" align="middle" />

  • The point of it WAS to test the physics, that's all it was for. I wanted to test the Y, Y and Angular velocity parameters, and this seemed the easiest way.

  • nice exemple

    it works, and only this is important to me. I'm not a programmer and I'll never be. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • how to set gravity power for physics?

  • jourdan

    Check these 2 articles from Ashley. They explain all about the physics behavior. Very useful :)

  • Question, is there a way to make some objects heavier than others? I am guessing not by gravity though. My best guess, would be to set density/weight or something of the sort?

  • zenox98 awesome! I love these simple games that still have substance to them and I always loved that old game!

    I thought that's what the density parameter was, no?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ugotsta

    Me too. This was just something to test out the new physics behavior. Now updated to include zoom when landing and explosions (wooooot!) :)

    BTW Still can't retrieve the physics.velocityy or x values. Anyone else tried?

  • velocityX.Y_test.capx

    Simply Sprite.Physics.VelocityX or Sprite.Physics.VelocityY expressions.

    It works fine when I preview this example.

  • Thanks Kyatric.

    I now know what I did wrong. I tried to set a Global variable to the Y-velocity, then append it to a text field. It doesn't work that way. If I use an object instance variable instead, then I can both display it and use it in a calculation. Sorted!

    Thanks for checking for me :)

    zen

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