Joskin's Forum Posts

  • I get what you said, but the collision box is used for the touch event, it's that way because it's logic . It would be weird if you cannot change the touch zone on an object.

  • Can you provide a capx with the bug ?

  • Detecting only when touching the collision polygon seems logic. It's not a bug.

  • Use Ajax for loading the file content :

    On start of layout : (Ajax) Request "aaa.xml" (tag loadXML)

    (Ajax) On "loadXML" completed : (XML) Load XML document from string Ajax.lastData

  • You have mutliple way to do this :

    If you want to stop the time when 2 objects touch, you have to start a timer at the beginning of the game/level.

    Create a global var called time, with a value of 0.

    Create another var called touched, with a value of 0.

    Add an event with two conditions :

    • Every tick
    • touched = 0

    (action) => add dt (delta time) to time

    When the two objects touch set touched to 1, you will stop incrementing the variable time.

  • What is the size of you caproj folder ?

  • Global var, an example capx isn't needed. Did you read the basics for construct 2 ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > On key pressed -> Play the sound with tag "thruster" looping

    > On key released -> Stop sound with tag "thruster"

    >

    > Try this and tell me !

    >

    I already tried this, it starts play every tick while button is down (starts a new sound every tick)

    i need while button is down file "thrust_sound" playing, when released it stops

    Impossible, the "On key pressed" condition trigger once.

    Did you really try what I said ?

    https://www.dropbox.com/s/8vdzm8xoglstp44/music.png

  • You want to score the time elapsed since the beginning ? Just add dt to your variable score every tick.

  • It's not an angle, there are 2 axis for the joystick, x and y.

    Try this for :

    Up : Y axis < -50

    Down : Y axis > 50

    Left : X axis < -50

    Right : X axis > 50

  • On key pressed -> Play the sound with tag "thruster" looping

    On key released -> Stop sound with tag "thruster"

    Try this and tell me !

  • I can't answer your questions because I'm experiencing a similar problem, I've noticed that happen when I change the volume of the sound (eg -10 -20 ...) on the play action.

    What about you ? Are you using different volume for your sounds ?

  • It works, wasn't outside the layout boundaries ... Thanks again !

  • Thanks shinkan, sadly there is no solution :/ (And I can't upgrade drivers on this computer...).

  • Tekniko it doesn't work with the trigger once after the condition CurrentLayout = x ?