lonrot's Recent Forum Activity

  • Any advice on this?

  • try applying a force in a diagonal direction then.

    I can't find that instance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you EncryptedCow

    It doesn't seem to work very well. the ball looses trajectory and becomes void of much movement and rotation.

  • Hi,

    I?m doing a PONG game, so far so good except that sometimes the player controlled movements cause the ball to keep bouncing only vertically on Y axis. It won?t reach the other player and the only choice is to refresh the page.

    Here's the DEMO

    How can I set that IF the ball is not moving fast enough towards X movement it should move faster OR be destroyed OR do something exiting?

    Sample of script:

    <img src="http://img109.imageshack.us/img109/2316/capture2ln.jpg" border="0">

    Download the Project Here

  • Use "compare two values" from the system condition. Since you probably have only one ball, you don't have to worry about picking the right instance, so simply compare ball.physics.yourVariable and 50.

    Thanks Magistross.

    I used System -> ball.Physics.VelocityX = 0.05 -> Ball -> Apply Physics impulse 0.08 toward (0,0) at image point 0.

    It seems to use decimals instead of big numbers.

    It seems to do the job, in an awkward way ^^

    Please let me know if it needs tweaking.

    Web Demo

  • I'm doing a pong game and the speed of ball sometimes when hit is too slow, I would like to increment the speed by 10% if the ball speed goes below 50. I don't see no compare speed or compare physics variables.

    So I'm a bit stuck.

    Thank you.

  • lonrot

    Now it should work. I removed walls and used bound to layout instead. Download from here.

    Thank you! I will keep using BoundtoLayout, it's very useful.

  • Random(0,1) returns a random floating point value between 0 and 1. You might want to try choose(0, 1).

    Thank you very much guys. Choose does the job.

  • lonrot

    I fixed your problem with changing the shape of collision polygon. Download the fixed version from here.

    Thank you Sollano, for some reason the left player still moves to the right if you keep pressed the UP key.

  • Hi,

    I'm doing a pong tutorial where the ball always goes by force physics to one direction. I would like to randomize the X direction to start negative sometimes (facing the other player).

    For that matter I made a numeric variable 0,1 where if 0 the ball goes to positive velocity, 1 it goes negative.

    The ball wont move if it's set to random. What am I doing wrong?

    Here's this script:

    <img src="http://img194.imageshack.us/img194/8499/capture3bq.jpg" border="0">

    Project Demo

  • Hi,

    I'm having trouble with a sprite, which is both player controlled and AI with no X movement, only Y. When it collides with an immovable solid wall. It stars to move towards X position. I've tried with some collision actions against each other with no results.

    Please enlighten me.

    Here's the script:

    <img src="http://img825.imageshack.us/img825/5426/capturewbo.jpg" border="0" />

    Project demo:

    dl.dropboxusercontent.com/u/62131673/Zumo/index.html

    Project file:

    dl.dropboxusercontent.com/u/62131673/Zumo/zumo%20construct.zip

  • Oh really? Too bad <img src="smileys/smiley18.gif" border="0" align="middle" />

lonrot's avatar

lonrot

Member since 25 Dec, 2011

None one is following lonrot yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies