lonrot's Forum Posts

  • vidi, that's not a bad idea, since I might make more than two looseSticks later on. OR only works for two objects. Thanks Weishaupt and smitchell I will try the OR plugin as well.

  • When my ball hits either looseStick OR looseStick2 the same message appears, I can do this by copy/pasting the same function. It would be better and cleaner if I could simply make an OR conditional for looseStick2.

    For example I can't find a way to say:

    ball (On collision WITH (looseStick) OR (looseStick2)) { DO STUFF }

    Screenshot:

    <img src="http://img832.imageshack.us/img832/3051/45729705.png" border="0" />

  • Thanks Yann, velocity makes more sense to me, and it's easier to read.

    Is there a way to add an ELSE / OR statement bellow VelocityX and Y conditions? I can make a separate function, but it would be nice to see a cleaner code. The ELSE statement is intended to kill the ball if it goes away from the stage (stage width 300px, stage height 600px)

  • Great Maxum! I have one question.

    When Ball.X and Ball.Y match 0, they become oldX and oldY, right? How this have to do with the current speed of the ball? To my understanding zero would be a location in X and Y axis, which is the top left corner, and not a value of movement. <img src="smileys/smiley24.gif" border="0" align="middle" />

    Thanks again, I hope you can clear this up for me. <img src="smileys/smiley3.gif" border="0" align="middle" />

  • I'm in the process of making my game on Construct.

    See the game in action (Flash)

    I'm able to drop a ball each time I click.

    But I don't know how to:

      > Stop the click event while the ball is moving. > Kill the ball one second after it stopped moving.

    Note: I'm using Physics.

    This is what I have so far:

    <img src="http://img7.imageshack.us/img7/3944/constructw.png" border="0">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Found it, I had to insert a new (mouse) object in the Layout panel. <img src="smileys/smiley20.gif" border="0" align="middle" />

  • Thanks azyzhong! How did you add/import the mouse event?

    I get this message: 'mouse' is not an object name.

  • Hello! Very nice program. but I can't find how to do this.

    My idea is to make the game character to move according to the mouse x direction, no need for Y.

    This is a test I made for flash, I want to do exactly the same with Construct:

    Game made in Flash