Joskin's Recent Forum Activity

  • Your loop should have another condition, for example a global variable called "spacePress" with a value of 0.

    On space pressed set the value of "spacePress" to 1.

    And in you loop add the condition : spacePress = 0. Then when space will be pressed, spacePress will take the value 1 and the loop will stop.

  • I just checked your capx everything works fine in chrome. I can select the blue box and drag it.

  • Yes, you can easily did this with the free version of C2.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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 ?

  • > 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.

Joskin's avatar

Joskin

Member since 26 Jul, 2012

None one is following Joskin yet!

Connect with Joskin

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies