dop2000's Forum Posts

  • Add a variable IncorrectDropCounter

    In your Else condition Add 1 to IncorrectDropCounter

    and create a sub-event: System Compare variable IncorrectDropCounter=3 -> display text

    Don't forget to reset IncorrectDropCounter to 0 when object is dropped correctly.

  • You can add an invisible sprite to the obstacle (slightly wider than the obstacle).

    On Enemy collision with that sprite -> Enemy simulate jump.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • For x=1 to 50 -> Set group "???????" & loopindex Deactivated

  • In "On object touched" event you can only address one instance of this object (the one that was touched).

    If you need to control other instances, add "System Pick all Object" sub-event.

    On touched Object  -> Add 1 to score
          System Pick All Object  ->  Object set position to (random(1000), random(1000))
    [/code:2cb9uli3]
  • EskilPotet

    Those should be 4 different events, not one!

  • I tried your capx in preview mode on my mobile - it saves the snapshot to Download folder, but the JS code doesn't seem to work, even after I updated the path to '/Download/snapshot.jpeg'.

    I'm not a big specialist in Android, so I don't know what could be wrong and how to fix it.

    Maybe you need to give the app some special permissions or something like that.

  • Your link is broken.

  • Event are ok.

    Almost definitely the problem is with the origin image point or collision polygons in "Idle" animation.

    If origin point in one of the frames is a bit lower, this makes the character to lose contact with the floor and it triggers the "Platform On fall" event.

    Use a single invisible rectangular sprite with platform behavior to control your character. And pin your existing sprite with all animations to it.

  • silvermaan

    Just curious - are you on Windows 10?

    If the answer is yes, try restarting your PC, for many people it temporary helps with C2 lags. For a few hours or days after the reboot, C2 runs much faster.

    You can also try running a little test from this post to check if lagging gets worse when you open/close C2 editor many times.

  • On my phone it saves to Download folder. Not www, not www/downoad, not www/downloads

    Just /Download

    If you can't find the file, use search function on your phone. You know the file name. Open some file explorer app and search for this name.

    By the way, when I preview this project on mobile and save the snapshot, Chrome shows me a notification about the saved image and its exact location.

    Does it happen on you phone? If not, maybe you are doing something wrong and the snapshot is actually not getting saved.

  • You need to move "invoke download" into "System->On canvas snapshot" event.

    Otherwise your code from the first comment is correct.

  • If there is only one bubble for each bad guy, add these objects to a container.

    You will not need to link them by ID or UID, when you pick the guy instance in events, its own bubble will be picked automatically.

    For example:

    For each Guy -> Bubble set position to Guy.x, Guy.Y

    or

    Guy on collision with Player -> Bubble flash for 1 seconds

    When you create a guy, its bubble will be created automatically.

    When you destroy a guy, its bubble will be destroyed automatically.

  • Use PathFinding behavior.

    https://www.scirra.com/manual/154/pathfinding

  • Probably, but you need to test.

    And also it's possible that the folder may be different on different phones, Android versions etc.