Woopop's Forum Posts

  • Hello everyone!

    I have an array that moves and detects collisions of enemies. It works well on level 1 but on level 2 it doesn't exist on the layout objects like it does on level 1. I tried to drag it on the level but construct doesn't allow me to do that.

    My question is: How can I copy paste this array from level 1 objects to level 2, 3, 4, etc. I didn't create it myself, it was from a tutorial.

  • I will try that, thank you!

  • Hello there!

    My game works normally in general. I have an option that when you collect all the items in a level, it unlocks the door to the next stage. (visible and collisions on)

    The problem is that sometimes, when I enter a level and collect everything, the door doesn't appear for some reason. Even if character dies and recollect them, it still doesn't appear. But when I press the Backspace (restart layout button), after I collect them it works normally. This happens randomly in some levels.

    I also added a command that in start of layout-trigger once-restart layout, and it fixed it bit but still happens sometimes. It is so weird.

    Any ideas or suggestions? Thank you for reading!

  • I see, thanks for everything! :)

  • Ok I fixed it thank you so much! This is how all my localstorage looks like and works the way I need it.

    I have one final questions if it is not a problem. If I would like to use these points to buy items for the main character, how could I do it in a way that if the main character dies, they restart the layout with the things that they have already bought in the previous ones?

    Currently when character dies, the points go to 0, which I don't mind because it adds an extra layer of difficulty so its more fun to try and stay alive until you spend your money.

    But how can I do that so that it keep the items?

  • Yeah but how about when I have also a save function in the game so you can exit the game and return to that layout in another time? How do I keep that global variable too with that save? Does it keep it too? I made the save like 6 months ago so I don't remember much about it.

  • I am really confused and I don't even know what I am doing anymore, spent hours on this. All that I want is so that when I make a score in a level, to move on the next level and continue growing. Instead when I go on the next layout, it goes to 0.

    The counting works normally each level, when collecting items or killing enemies, but it just gets lost after I move on the next layout. I would appreciate some help, thank you!

    Here is what I have so far:

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post