Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Can I tween Editboxes?

Author
Message
Zwarteziel
14
Years of Service
User Offline
Joined: 22nd Jan 2011
Location: Netherlands
Posted: 10th Jul 2015 16:11
Hi all,

I'm trying to help out a friend who wants to collect user-input using editboxes. To make the app visually more appealing, we'd like to animate the boxes when they're introduced. I don't have a lot of experience with the tween-commands yet, but so far, I was unable to treat them as an object to be moved. Does someone know if it is possible to animate editboxes using AGK's Tween-commands? Thanks!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Jul 2015 17:05
Not directly, but yes it can be done indirectly.
Create a sprite and make the tween animation that you want your edit box to carry out.

Once you are happy with it, make it non-visible. While the tween is playing (GetTweenSpritePlaying()), set the edit box to the same position as the tweened sprite.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Zwarteziel
14
Years of Service
User Offline
Joined: 22nd Jan 2011
Location: Netherlands
Posted: 10th Jul 2015 20:14
Ah, that's really clever! I think that will work very well. Thank you, Batvink!

Login to post a reply

Server time is: 2025-05-30 07:32:28
Your offset time is: 2025-05-30 07:32:28