dop2000's Forum Posts

  • You can't use "Wait" or "Every X seconds" with values smaller than 0.016, because your events run only 60 times per second (not 1000 times).

    Edit: sorry, didn't see jobel's comment.

    Just use time or dt expressions.

    howtoconstructdemos.com/simple-stopwatch

  • I think you need to increase the speed, not acceleration. After 1 second delay, set speed to normal value.

  • On Enemy destroyed
    Repeat 10 times
    	Create Cube at (Enemy.x+random(-50,50), Enemy.y+random(-50,50))
    

    You can add Bullet, Fade, Rotate behaviors to cubes and after creating each cube set random values for bullet speed, angle of motion, rotation speed etc.

  • Yeah, go for it!

  • You can not disable touch. What you can do is ignore it, for example when the object is invisible. Simply add "MyButton is visible" condition to your "On MyButton touched" event.

  • It depends on the game. You can use Bullet behavior with gravity. Or two Bullet behaviors - one to control the movement left/right and another with gravity which will pull the sprite down.

    Platform and Physics behaviors also have gravity setting.

    Or you can add gravity with events, for example "On every tick: Sprite set y to (self.y+100*dt)"

  • You need to change the impulse intensity depending on the distance to the target. Try something like this:

    Apply impulse X=0, Y= clamp((DestinationY-Car.y)/100, -1, 1)

    Of course, you'll need to experiment with the numbers.

  • Use Tween behavior -> Tween (two properties) action -> Size.

    In "End X" and "End Y" fields you can put Sprite.Width*2 and Sprite.Height*2, and the sprite will grow twice in size.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your events 13 and 14 run on every tick, 60 times per second.

    You need to move them inside the "On start of layout" or similar event, which is only triggered once.

    Don't just add "Trigger once", it will not work, because you are using "Else". You can try this:

    Multiplayer Is Host
    Trigger once
     ...........
    
    Multiplayer Is NOT Host
    Trigger once
     ...........
    
    
  • Add all your sounds to the project with names like Sound1, Sound2, Sound3, .... Sound10

    Create a global variable SoundNumber.

    On Sprite Clicked 
    	If SoundNumber=10 : Set SoundNumber to 1
    	Else 	: Add 1 to SoundNumber
    
    	: Audio stop tag "mysound"
    	: Audio play "Sound"&SoundNumber with tag "mysound" 
    
  • Does the API key ever change? If not, store it in the php script, don't send it.

    Otherwise, you need to encrypt it:

    construct.net/en/make-games/addons/257/forge-c3-runtimeworkers

  • I believe both these addons only support runtime 2. You need to switch your project to Construct 2 runtime, in project properties under Advanced tab.

  • You need to set button animation frame in event #8.

    I have a good demo on how to save game settings (including sound on/off) in Local Storage, take a look:

    howtoconstructdemos.com/easily-save-multiple-values-in-local-storage

  • If you have questions about regex, you will have much better chances to get an answer on stackoverflow. Not many people here know regex.

  • Reset Global Variables will reset all global variables in the entire project, even in not-included event sheets. If you want to preserve some value after the reset, there are a couple of ways to do this -

    • you can make a static local variable in an event group. Static local variables are not reset.
    • you can create an instance variable on a global object (array for example), or create a dummy object (empty sprite) and set it as global
    • store it in an array or dictionary
    • save in Local Storage