How to make image come upside gradually?

Hi, GS dudes.
I am gonna make some images come upside from the bottom of the screen gradually.
This is what I have made.
When an event is happened.
Change image
Change Attribute self.Position.X to 160
Change Attribute self.Position.Y to self.Position+.5
Change Attribute self.Position.Y to 160
However, it doesn't work. Help me please.
Thanks
I am gonna make some images come upside from the bottom of the screen gradually.
This is what I have made.
When an event is happened.
Change image
Change Attribute self.Position.X to 160
Change Attribute self.Position.Y to self.Position+.5
Change Attribute self.Position.Y to 160
However, it doesn't work. Help me please.
Thanks

Best Answers
-
scitunes Posts: 4,047
Change attribute only fires once unless you wrap it in a timer. Use interpolate.
So when even happens
change attribute self.positionX to 160
interpolate self.positionY to 160 -
FViMagination Posts: 89
hi gawakamy,
If I understood what you did, maybe you can try with Interpolate behavior, giving some time to your Actor to come upside, according to how long or short you want your Actor to move upside.
Something like this:
Rule: (your event)
____
Interpolate Attribute: self.Position.X to 160
Duration: 0.3 (if you need your Actor to go to PosX 160 quickly)
____
Interpolate Attribute: self.Position.Y to 160
Duration: 1 (or try some other number until you get satisfied by the movement of your Actor)
hope this helps
cheers!
Answers