lionz's Forum Posts

  • So what change are you proposing?

  • Probably the hp bar doesn't relate to the enemy in any way. Check out 'Containers' where you can create an enemy and an hp bar together and it will always pick its associated instance. Other conditions may also work such as pick hp bar overlapping enemy or hp bar nearest to enemy.

  • Upgrade to Construct 3 for an easier life :D

  • Move the trigger events, the ones with the green arrows, into their own individual events to see if that changes anything. As for not moving left past a certain point there's no context I don't know how I can help with that.

  • Use distance expression distance(obj1,obj2)

  • In the other layout you have to think of it as a new and different object, what you applied before on those instances in the character select doesn't transfer over. Best fix in my opinion is to set the frame chosen to a global variable when you select a character, then for the Game events you can say on start of layout set player animation frame to global variable.

  • Every X seconds, pick a random instance of 'Square' (under System)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Chris

    The on completed "tag" needs to be the same as the request. Should be on "GetHomeFields" completed as it is waiting for the "tag".

    Also the action is not system load game, you should pick the Array object and use Load action, remember you are loading data into the array. System load is for save game type stuff.

  • The expression before random also has an effect so in this case floor rounds the value down so it will never choose 10 for (1,10). If you use ceil instead of floor then it would pick 10 but not 1 because it rounds up. You could always just use choose() then you know the available values.

  • Add the Ajax object to the project.

    Events :

    On start of layout : ajax request project file (your file)

    Ajax on completed : array object - load action with value ajax.lastdata

    This loads the file into the array, you can then manipulate it with the events.

  • Well it's kinda easy, try it out :) it should fix the skipping issue

  • It's a little tricky but what I do for this is have the loop inside a function and stop the loop if the matching value is found and then run the function again.

  • I assume you're using the arrow keys which is default controls for platform behaviour. You need to untick default controls on platform behaviour for the enemy. For the player you can keep the arrow keys or make your own key press events.

  • If you need to disable for some reason you can enable later, just remember that the setting is global and they will remain disabled :)

  • It's fine I had a look, it's because you deactivate the group with the controls in it, not sure why you did this.