dop2000's Forum Posts

  • There's a system action called "Reset Persisted Objects" that does exactly what you'd expect.

    Be aware that it will reset ALL objects on all layouts.

  • I was working on a project with lots of persisted objects and lots of complex hierarchies, and there were quite a few bugs:

    github.com/Scirra/Construct-bugs/issues/6389

    github.com/Scirra/Construct-bugs/issues/5523

    github.com/Scirra/Construct-bugs/issues/6019

    github.com/Scirra/Construct-bugs/issues/6225

    They all have been fixed, but we still have occasional unexplained problems when the game is loaded from saved state. I can't report them because there's no repro..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My biggest issue with Persist behavior is that "Reset persisted objects" action resets all objects on all layouts - which makes it pretty much unusable in large projects.

    There are also lots of bugs when objects with Persist behavior are in hierarchies, restored from save state etc.

  • Check out this tutorial

    construct.net/en/tutorials/supporting-multiple-screen-17

    Most common solution is to use Scale Outer mode, but you might need to make some changes to your game - bigger backgrounds, use Anchor for UI objects etc.

  • I believe you need to dowload echarts.js or echarts.min.js and put it to Scripts folder in the project. In script properties (on the left panel) select "Main script". If it doesn't work, try "Import for events".

  • I don't know which behavior you are using, so it's up to you to determine the moving angle of the player. In 8direction behavior it's Self.8Direction.MovingAngle. Or you can check which button was pressed:

    If Down key is pressed : Set angle1 to 90

    If Left key is pressed : Set angle1 to 180 etc.

    .

    angle2, the angle between the player and the yellow imagepoint:

    angle(Player.x, Player.y, Shape.ImagepointX("tag"), Shape.ImagepointY("tag"))

    And to compare them use System conditions - "Is Between angles", "Is within angle", "Is clockwise".

  • You can define an image point (or set origin point) on the shape sprite at the yellow dot:

    And then compare two angles: player movement angle, and the angle between the player and the yellow dot.

    If angle1=angle2, then rotation is not required.

    If angle2 is clockwise from angle1, rotate 90 degrees.

    If angle2 is counterclockwise from angle1, rotate 90 degrees.

    .

    You can add another condition "the difference is over 5 degrees", to avoid rounding errors.

  • But however will I still need 60 events for 60 questions?

    No, this would be a wrong approach.

    Here is a very simple example:

    dropbox.com/scl/fi/ac9jmw6dhz0ea3p98pe1s/FlyingQuiz.c3p

  • > Delete the editor window > Delete the "Dimmer"

    What do you mean by this?

  • Try different releases, until you find the one that can open your file:

    construct.net/en/make-games/releases/stable

    Or you can check which release your project was saved with - unpack it to a folder and open project.c3proj file in notepad. Look for "savedWithRelease" value.

    You can continue developing your game in old version of Construct. There may be some bugs and some export options may not work.

    To update to the latest version you'll need to fix the addon, or remove it from your project.

  • Add a second condition after it - "System Pick Nth instance" and pick instance #0

  • Press F12 and check error messages in the console, it should tell you what exactly is wrong with the file.

  • There are quite a lot of problems..

    Events 2-5 should be done with Timer behavior on the projectile.

    NEVER use "trigger once" with objects that have multiple instances. "Ray intersected" should be nested in the same event where you cast rays.

    Instead of using 4 copies of LOS behavior, you can use one and cast a ray 4 times.

    In the functions 11-17 you need to pick the correct projectile instance by UID, otherwise it won't see the newly created instance. It would be easier to just move dots creation loops to "On space pressed" event.

    It also may be easier to use an invisible Line sprite - create 20 dots on it and add them as children to the Line sprite. Then you can just adjust the position, angle and width of the Line sprite, and all dots will re-position automatically. Or use a single TiledBackground object :

    dropbox.com/scl/fi/cdvnhadvcocu207w2g4ei/Dots.c3p

  • If an ad is shown once, this tell me that everything is working correctly. Maybe Admob just doesn't serve you more ads. Have you tried waiting a few minutes, maybe even 10-30 minutes?

    You can also debug the app in xcode and collect the console log. If there are any messages/errors from Admob, you'll find them there.

  • alastair This is great, but could you tell what exactly it patches? Is it possible to do these changes manually?

    Edit: I didn't realize this tool was by Skymen.