Save Position
Yummy
Member Posts: 51
i cannot figure this out, I have an actor
When this actor Is pressed and dragged (I set this up) it moves ,
But I want it to save the position (any ideas)
I have another scene that has the button and I want it to be saved
Thanks Let me know
When this actor Is pressed and dragged (I set this up) it moves ,
But I want it to save the position (any ideas)
I have another scene that has the button and I want it to be saved
Thanks Let me know
Comments
PosX and PosY.
On that actor you drag and drop add;
Constrain PosX to Self.Position X
Constrain PosY to Self.Position Y
On the new scene, to the actor you want, add to the beginning;
Change Self.Position X to PosX
Change Self.Position Y to PosY
But im running into a problem, when i click start game (without going to settings) i see that all the button is at the very bottom but when i open the other window then click back and goto the next scene its all good, any clues of how i can fix this? thanks
Yummy... I think the problem is the initial state of posX, posY is 0,0 ... therefore the actor goes to 0,0 before drag/drop event.
so have in the opening scene the the constrain.Positions in a rule to happen when touch is released.
When touch is pressed...your drag constrain Attributes
When touch is released ... your constrain to self.Postition.
MH
Thank you cbt and mothergoose for your help , i greatly appreciate it!