steve_samue's Forum Posts

  • 2 posts
  • Let's say you have imported a file into the Construct project and you called it "theme.json". The code inside reveals to be an array code in JSON. And then you add an array plugin named "ThemeArr". Using AJAX, we can make the array have the same elements and values as in the theme.json file. We can load a JSON file into an array, but what about the opposite? How do we overwrite a JSON file with the Array.AsJSON?

    Tagged:

  • You do not have permission to view this post

  • I wanna ask on simulate control. So, I made an AI to move left and right after 200 steps. It's something like this:

    Enemy: steps = 100 => moveto = "left"

    Enemy: steps = -100 => moveto = "right"

    Enemy: moveto = "left" => Wait 2 seconds, simulate platform moving left, add -1 to steps

    Enemy: moveto = "right" => Wait 2 seconds, simulate platform moving right, add 1 to steps

    But I want when they reached steps = 100 or steps = -100, the enemy have to stop. How to do that?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 2 posts