You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When moving across the map using map engine, objects take on different ids. Because ids are not fixed, then using functions such as oamSetVisible(id, OBJ_HIDE) does not allow you to target a specific object since the ID changes all the time.
For example, I set oamSetVisible(1, OBJ_HIDE) to hide my second object. Then when I move across the map different objects taking on an ID of 1. The problem ends up being that each of those other objects then become hidden as well.
It would be nice to be able to specify object IDs when using the map engine so that we can reference a specific ID in functions such as oamSetVisible.
The text was updated successfully, but these errors were encountered:
mbh21
changed the title
Fixed object IDs when using map engine
Object IDs are not fixed when using map engine
Mar 8, 2023
I will check but I do not think it is possible because the goal of sprite engine is to be dynamic. The only thing that you can do is to know the order of the init of your sprite (for example, I always use hero of my game as 1st sprite) to refresh them.
I keep your request open but I do not think I will fix it.
When moving across the map using map engine, objects take on different ids. Because ids are not fixed, then using functions such as oamSetVisible(id, OBJ_HIDE) does not allow you to target a specific object since the ID changes all the time.
For example, I set oamSetVisible(1, OBJ_HIDE) to hide my second object. Then when I move across the map different objects taking on an ID of 1. The problem ends up being that each of those other objects then become hidden as well.
It would be nice to be able to specify object IDs when using the map engine so that we can reference a specific ID in functions such as oamSetVisible.
The text was updated successfully, but these errors were encountered: