I must be doing something wrong that I don’t understand. It’s very simple, I create a “kanjiTree” sprite, I create another “kanji64” sprite. I move “kanjiTree” to a random position of X(). Then I tell “kanji64” to follow his position.
If I separate these two actions, pressing one key at a time, it works perfectly. The two sprites are created and when I press the key they align.
I just tested it, but it doesn’t seem to work. Kanji64 appears in a random X() every time I press the key, instead of aligning.
It only works if I separate it into two different keys or put the align event that each frame is always being checked, which seems absurd to me in this case, because the sprites once created will not move.
It doesn’t work either, every time you press K, “fruit” appears in a random X place.
I have put logs and it tells me the same number every time, but it is totally false because in the preview of the game they come out in different places.
It’s like generating a random value for “tree”, using the same for “fruit” and right after moving “tree” to another place for some reason that I don’t know. Is it a bug?
What happens if you “create object kanjiTree at position Random(100, 400); 100”, and “create object kanji64 at position kanjiTree.PointX("kanjiAttach");kanjiTree.PointY("kanjiAttach")”?
Whether that fails or not, I suggest you raise it as a bug. It should work like you had originally.