Uh, yeah, my example is a bit confusing, sorry. I'll try to elaborate a bit. I am experimenting with transforms and UI animations to see what is actually possible and how visually appealing and smooth i can make it.
I've got a menu that opens by sliding up on "show", and closes up by sliding back down on "hide". Goes like this:
Code: Select all
transform jumpmenu:
on show:
ypos 810
easein_bounce 0.7 ypos 0
on replace:
ypos 0
on hide:
easeout_quad 0.2 ypos 810
linear 0 alpha 0
What i am trying to do is to make it slide up a bit more when you click a menu button so an additional screen with confirmation would be shown under it, and slide back when that additional screen is being hidden, while still retaining it's base "hide" and "show" slide animations. So it has to be a separate specific block in this transform, which wouldn't interrupt the other animations presented...
So what i came up with that imo could work (but then again, i can't find a way to imply it properly), is to create a variable -
On the screen with the additional information, that is opening when you click a menu button, i put the following code:
Code: Select all
on "show":
action SetVariable("slideupmore", "on")
on "hide":
action SetVariable("slideupmore", "off")
So all that's left is to create a condition in the menu transform block, which would slide it up and down accordingly as the information screen is being shown and hidden.
I understand this is not a very elegant way of doing that, but i think it's gonna do what it should so there's that. It also -have- to be a separate screen like that since it's going to contain confirmation options as well. I can't find a better solution to this, since i am a beginner, so that's why i am posting here, uh.
If there's a way of defining a custom condition as i explained in the first post so i could try and also learn how to do such a thing in general (which would be very useful), i'd be extremely grateful for the information! Custom actions are game-changing (lol), knowing how to do custom transform conditions would be a total breakthrough.