If i have for example10 same object, how i can generate different ID number for each?. I try do save system, when next time back to level, there is all object which not collect in correct place.
- Add a “For Each Object” Event.
- Select your object.
- Add a “Trigger Once” condition.
- For the action, add a “Modify scene variable” action. Variable name “ObjectNameHereIDCount”. Add 1
- Add another action, with the “modify object variable” action. Set the variable name to “ID”. Set the value to Variable(ObjectnamehereIDCount)
Thanks!!. It work. Now i can write and read, but problem is now how create objects that specific place when level start and delete another.
The “level editor” example included with GDevelop show you how to do this:
Thank you ddabrahim!! There it is.