(solved)How do I script a reposition of drag within a screen?
Posted: Thu Feb 14, 2019 4:12 pm
Let's say I have a screen with a draggable object inside
and I want it to move into a certain position, ideally with ease effect something like
unfortunately it seems transforms cannot be applied directly on screens, and I have no idea of how to approach the drag within a screen. So I would be thankful for any suggestions!
Code: Select all
screen say(who, what):
style_prefix "say"
drag:
drag_name 'screen_say'
window:
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
text what id "what"
Code: Select all
e 'and now i move your draggable say screen!'
show screen_say:
ease .5 pos (0,400)
pause 1
e 'see? it's moving. It's alive!'