lionz's Forum Posts

  • You're probably racing them so localstorage.itemvalue is not what it should be when you grab it. Have you tried ordering them so when the first one is missing or found, check the next one?

  • You can use another variable and set that based on the string I guess

  • This should work :

    Middle mouse button

    or Right mouse button is down : object disable drag drop

    Left mouse button is down : object enable drag drop

  • You can relate the object instance to the array by way of instance variable. So object.var is array.x, object.var=1 is all data at x=1.

  • Are you using it wrong? Show us how you're using it, let's see the event sheet.

  • Ah ok I see. I thought you were saying that the zeroes were unexpected. Resolved above then ^^

  • No problem! Just to clarify again it knows which instance of Home to use because of the conditions on the left. In Construct you can narrow down picked instances with conditions on the left. If you don't narrow it down then it picks the single instance with the lowest UID. You can also use 'for each' instances to run actions for every instance.

  • On the action you use system 'set value' and you should be able to use Home.x or Home.y

  • That looks correct, are you sure the values at array1.x=0 are not actually 0? Let's see a screenshot of array 1.

  • If you use the condition 'player is overlapping home' then it 'picks' the correct home object. Then with the actions on the right you can happily set the global variables to home.x and home.y.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Saving on suspended or when the app is exiting sounds risky. I guess just autosave after each important step of the puzzle so you can restore it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "When they come back to the game it will restart and go back to the menu." What does this mean? What kind of game is it and what are you trying to save, does your game need to be saving every 10 seconds?

  • Fair enough, it looks fine at about 18 seconds in the video but elsewhere the wall jump is overruling it because of the conflicting code about having walls to the left and right. The looping is fixed though which is all I was trying to resolve haha