lionz's Forum Posts

  • Is it definitely playing attack when you're in the air ? There could be interference from jump or run animation. I would replace collision with 'is overlapping' so it is checking more often.

  • You probably don't want to spawn a bullet every tick, instead on the left conditions add an 'every X seconds' condition so you can create a firing rate.

  • It does not work you mean the variable ? Or you mean it does not type anything ? Check the actions for 2nd layout are on the correct event sheet or one linked to the 2nd layout.

  • You could use IID which is unique identifier of each instance starting at 0. So using a global variable to compare with, you have an event that always highlights the instance where object.iid=globalvariable, the first instance at IID 0 would be selected. When you press tab you add 1 to the global variable so it moves between them. You would need one additional bit of logic where gv is higher than the number of objects so that would be something like gv = object.count - > set gv to 0, to cycle back round to the first one. Because IID is kind of creation order the selection might seem random to the player but I did ask.

  • It's simple to do but you didn't mention how they should be ordered. The 'next' object relates to what?

  • You need to pick the instance properly with a condition like 'slab on collision with player' then any action applied to slab such as set enabled true will apply to the one that collided with the player.

  • Worked it out name should be ItemPosition.At(InventorySlot.SlotID,0)

  • Ok i had a look at the file you are referring to loading data from the array when you load into a level. Looks like your condition is wrong in that function should be 'for each inventory slot' I think that's all you need to get going.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I meant logic like this construct.net/en/tutorials/savegames-11

  • Under system there are actions for save and load, you can use these to make a save game. It saves everything at once in a state form.

  • You do not have permission to view this post

  • not checked the file yet but for a platformer game - system save and load should be simple and good enough, did you use this method ?

  • You do not have permission to view this post

  • set the turret variable on start of layout to a global variable value.

  • Spawn a bullet on the player gun imagepoint and set the bullet angle of motion to 180 if looking left and 0 if looking right. Whether you want a separate gun that's up to you.