dop2000's Forum Posts

  • Stitching together a random set of scenarios:

    I used this system in a couple of my games. But of course, it won't be practical with big complex scenes.

    Another idea is to make a "snapshot" of the scene layout (during development) and save it in a text file. This can be some bare bone information about each object (type, position, angle, layer etc.), or a complete save state in JSON format. Then you can use this data to recreate the scene in runtime.

  • It's impossible to give you the answer with so little information.

    If you have animations like "Idle_Naked", "Run_Naked", "Idle_Armour_Iron", "Run_Armour_Iron", "Run_Armour_Gold", then you need to name all animations this way and use a few text variables. For example:

    Set animation to State & "_" & ArmourType

  • You should start by studying the official templates included in Construct 3. You will learn a lot from them.

    To change the animation when a key is pressed, add Keyboard object to the project and add this event:

    Keyboard on key A pressed -> Sprite set animation "Move"

  • Preventing pathfinding objects from overlapping is a popular topic, but there is no easy and universal solution. You can search the forum and tutorials, there are many posts about this. I have two examples, but they are quite complex and may not suit your game very well. (you can open them in free version of C3)

  • Check the last few pages in this thread! Working download links are always there.

  • It works for me. Press F12 in preview and see is there are any error messages in the console log.

    Also, use this url:

    https://m.ingo.dk/cs/Satellite/m/JDK1/dk_DK/pg1334077745046/INGO/Priser.html

  • Using UIDs is not always practical. You can add an instance variable PointID and use "For each Waypoint ordered by Waypoint.PointID" loop.

  • You can. But you'll get the entire page in HTML and will need to find the way to extract the prices from it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure what the problem is. You can simply do this:

    For each WaypointSprite -> Character MoveTo WaypointSprite (add waypoint)

  • Here is a demo I made recently to get day of week from the internet:

    dropbox.com/s/pzhuot5i7779tn8/DOW_FromInternet.c3p

  • Here is my version:

    dropbox.com/s/a7e6l7c9x30pt5i/CoyoteJump.c3p

    If you need double-jump or jump sustain, this will require more work.

  • Here is a simple way to get overall velocity:

    velocity=distance(0, 0, velocityX, velocityY)

  • You request the URL with AJAX, then wait for the response, then get the prices from AJAX.LastData. The task will be much easier if the page returns the data in XML or JSON format, otherwise you'll have to parse HTML and it's not pretty.

  • I think it will be better if you set text Orgin to left of center, and align it with the center of the 9patch. Still, it may shift up or down on different browsers/devices.

    If you want a perfect placement, you should use SpriteFont.

  • Be aware, that when the window size changes (in "On resolution change" event), you might need to redraw the canvas and regenerate the snapshot.