lionz's Forum Posts

  • If health greater than health_max, set health to health_max.

  • Well the event is something like distance() less than a value, shoot bullet.

  • > You need to load/create it on the game layout

    Thanks for the answer.

    I made the change, but it still doesn't work.

    There is no test ad

    It can be many things, not enough info provided. But for sure you need it on the correct event sheet so at least you updated this. You could share the project and I can take a look.

  • You need to load/create it on the game layout

  • Usually pathfinding behaviour would be used instead of the way you implemented it. Not sure what you expect to happen if you designed it in a way where pressing right also makes him move right.

  • 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)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)

  • 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.