dop2000's Forum Posts

  • You forgot to re-activate your Functions group on restarting, maybe some other groups too.

  • Something like this maybe?

    It can probably be done easier with regular expressions, but I don't know them that well (or in fact at all )

  • You can try bullet behavior with gravity and bounce off solids. Increase Bullet.Gravity after each collision with the floor.

    Or you can try physics.

    Or maybe some combination of sine, tween, bullet etc.

  • Save your project as a single file, upload it to dropbox (or similar service), share the link here.

  • Create a sprite "BalloonString" - a horizontal line.

    Set origin image point at its left end.

    Set position of this sprite to the player's hand and pin it to the player.

    Then do this:

    On every tick
      BalloonString -> set Width to Distance(player.x, player.y, balloon.x, balloon.y)
      BalloonString -> set Angle towards position (Balloon.x, balloon.y)
    [/code:2umjoiwu]
  • Please share your CAPX file or at least a screenshot of your events sheet.

  • Just type it in the "Value" line

    While you are there, look for a semi-transparent window called "Objects with expressions", click it and select System - you'll find lots of interesting expressions and properties, including that Max function.

  • Then don't do "Add 1 to LevelProgress" at the end of each level.

    Instead do something like this:

    If LevelName="Level1"  -> set LevelProgress to Max(1, LevelProgress)
    If LevelName="Level2"  -> set LevelProgress to Max(2, LevelProgress)
    If LevelName="Level3"  -> set LevelProgress to Max(3, LevelProgress)
    [/code:31prey72]
    
    So if user reached level 3 and then decided to replay level 1, LevelProgress will remain 3 (because of the Max function).
  • Swipe and double finger tap are both gestures, which means there also will be lags if you use them..

  • Yes, there is a slight lag with tap, because this event triggers after the finger was lifted off the screen.

    But this is the only way to do what you want.

    You can't jump at Touch Start event because you can't predict if player will be doing a short touch or a long hold.

  • Construct 2 detects collisions using collision polygons.

    Check collision polygon of your Enemy sprite (on all frames) and of that object that should stop it.

    If this doesn't help, please share your capx file.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just use gestures instead of basic touch events.

  • See my screenshot above how you check which layout is active!

    System->Compare two values -> LayoutName equals <your layout name>

    Instead of having separate variable for each level (Level1, Level2, Leve3 etc), just make one global variable LevelProgress.

    Add 1 after completion of each level to it.

    In your LevelMap check the value of LevelProgress and unlock next level icon. For example if LevelProgress=2, then level 3 is unlocked.

  • Another thing I noticed - you have almost identical event sheets for levels 1 and 2.

    You can delete EventLevel2, and set the same event sheet for both layouts.

    If you need to do something different for each level, just check which layout is active: