Hey, guys.
I'm assembling the final pieces of my video game for Android release, then Xbox, PC.
I've encountered a weird problem almost at the end and no idea how to solve it.
I'm using this function just to move a sprite when the layout loads based on a global Score variable from another layout.
lerp(Player_Ship1_c.X,gotoX_ccy,dt*dtmove_ccy)
Here's the problem.
1) The layout works just fine when changing the variable when loaded either as a separate layout, or as the starting layout in the merged capx with lots of layouts.
2) the global variable Score seems to pass to the target layout, tested with text object.
3) The move condition works too based on 1).
The problem is when testing the first condition, based on the first score, AS PART OF THE MERGED CAPX, the sprite goes to 0,0 as opposed to the target position and I can't figure out why as the variable seems to pass.
I've encountered one minor corruption before which I fixed, but here nothing seems to work because the capx works individually, just not as a part of the merged whole. I deleted the layouts and event sheets several times before reintegration.
Any help would be greatly appreciated as otherwise I will have to cut this cool portion of the game.
---
I've even made a new variable in the target layout and set it to Score. No dice.
Anyone encounter this before and find a solution?