Centra's Recent Forum Activity

  • Thank you so much!

  • I'd like to accomplish the same effect but I don't think the wait action is the best way, how can I do this more effectively?

    https://www.dropbox.com/s/01rmzw3unt09ku6/mousescroll.capx?dl=0

  • I'm looking for a better solution for a menu which scrolls by using the mouse wheel. Below is a capx which uses wait, but I don't think that's best practice.

    Capxhttp://www.filedropper.com/mousescroll

  • I like your approach to handling the elevators by searching for the best option first (ie, an agent chooses the elevator which travels to both his current loc, and destination) Then the second choice if an elevator which travels nearest to the location and exiting.

    I would like to know how one might actually implement a Depth First Search algorithm in Construct 2?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm struggling with the implementation of a pathing system for agents who exist in a 2d building, where floors are only accessible via elevators which transport agents between floors.

    youtu.be/muiP9EZ2Cek Here is a YouTube clip to better illustrate what I mean by this.

    During the course of a play, floors and elevators may be built (and shafts expanded up and down), so the paths must be updated. In the image below, an agent on the 1st floor wishes to go 5th floor but there is no direct path. It must find a path using multiple elevators.

    Image: imgur.com/a/N9ef7Tc

    My approach thus far is to equip each agent with a stack which determines their actions via an Finite State Machine (states: idle, move, and performAction), the elevator cars also have a stack which receives movements based on agent needs, but it the whole thing lacks central planning.

    My question is how would others approach this problem? Some more savvy friends have suggested that it is a graph problem, but I'm not sure on how to technically implement something like that into Construct 2. As in how to implement a shortest path algorithm into an array containing the connected floors. Any insights would be helpful and greatly appreciated

    Edit: Realising now there is a C2 'How do I?.."

  • Thank you so much! Very cool

  • Hey, it's a nice inventory structure,

    I was led here by looking for stuff about arrays and level building, I thought your capx might be insightful but the link is down

  • I don't think this is the place, but I dislike and am not interested in C3 because of the choice to make it only work in the browser instead of stand alone desktop application. Is that how it will remain or is there any plan to make a desktop version?

  • Hello everyone,

    I'd like to setup a real time 24 hour day night cycle by taking the current time (from a 24 hr clock but maybe it's easier with a 12 hr clock) and syncing it with how dark/light the layout should be.

    I found an example of a day/night cycle using sine https://www.scirra.com/forum/day-to-night-cycle_t72435?start=20

    which I've used as a base (because I believe that's how F.Lux works) but I haven't been able to figure out how plug in my in game clock and have it work.

    I read in the manual that sine works in degrees, but I'm working with seconds and have no idea how to convert that into the Period of sine, if that's even what I should be doing...

  • How did you figure out clean path finding up/down stairs? Are you using the path finding behavior? I played with it but haven't come up with a good solution yet. I'm trying to figure something out for A.I. pathfinding in a lemmings style game

  • Hey! Thank you for your reply

    I've set up the php file and served it but I can't seem to get it to retrieve in Construct

    I'm wondering if it's because I'm running Construct locally

    link to screenshots

    http://imgur.com/a/jSITG

    I've split the event sheets so that a request is made before going to the new layout, and I removed the every 5 seconds update.

    Add an Ajax - On Completed event but still comes out to daynightOutput = NaN

  • Hello,

    I was wondering if it's possible to run a construct 2 build on a server where the system clock can be synced to the game clock.

    To illustrate, let's say the construct 2 build has a day night cycle synced to real time, so anyone who visits the server and plays the game will notice that the game is taking on the servers clock to set the day/night phase.

    I was looking into rex's timeline plugin https://rexrainbow.github.io/C2RexDoc/c2rexpluginsACE/plugin_rex_timeline.html

    but I am curious how others might go about this or if I'm on the right track?

Centra's avatar

Centra

Member since 18 Jun, 2013

None one is following Centra yet!

Trophy Case

  • 11-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies