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 / [SOLVED] Tween group easing.

Author
Message
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 8th Jul 2019 14:33 Edited at: 8th Jul 2019 14:36
Hi, community.
Some game engines and frameworks have groups in which objects are grouped (images, text, etc.) that react to commands. Here is an example of Corona SDK and what Bitmap Font looks like in AppGameKit due to the fact that their coordinates do not coincide and the work with Tween is not possible. Maybe in the future the bands will appear? They would make the work very easy.

And now I will probably write my own implementation.

AGK


Corona SDK
https://www.instagram.com/qugurun/

The author of this post has marked a post as an answer.

Go to answer

Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 8th Jul 2019 17:10
Since I have few objects (buttons), this solution will help me out. But I think that the memblock would be more productive, but, unfortunately, I could not get the desired result quickly due to the inexperience of working with him.

https://www.instagram.com/qugurun/
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 8th Jul 2019 22:09 Edited at: 9th Jul 2019 01:23
Have you looked at the Tween commands

EDIT: I think i may have misunderstood the question. Someone once told me that you could do this with bones
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 9th Jul 2019 04:43
@blink0k Thanks for the offer, but it's probably not gonna work.

I'm actually in trouble because of tween. The reference point of the text is in the middle of the text at the top of the text and you can't change it at all.

quote:The CreateSkeleton2D() statement allows us to create a new skeleton independently
of Spine or Spriter, but as yet there are no accompanying commands to allow us to
add bones to the skeleton nor images to the bones.
https://www.instagram.com/qugurun/
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 9th Jul 2019 05:07 Edited at: 9th Jul 2019 05:39
Sorry. Didn't see your post there. Nice work
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 9th Jul 2019 22:57 Edited at: 9th Jul 2019 22:58
Sorry for the double post. Not sure if this is any better than burning the text into the sprite but if you wanted to say; Change the text during the tween.

You could tween the sprite then use GetWorldXFromSprite() to find the position of the text within the sprite and then , if necessary copy the scale as well.
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 10th Jul 2019 06:55
Thank you very much, but if you don't mind, you can give me an example of what you're saying that I can't figure out how to work with it . Thank you.
https://www.instagram.com/qugurun/
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 10th Jul 2019 07:46
I guess I'm using it wrong somehow.
https://www.instagram.com/qugurun/

Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 10th Jul 2019 08:03 Edited at: 10th Jul 2019 08:15
This post has been marked by the post author as the answer.
I'm sorry, i thought it was just position and there's no way to scale the text. Bugga!

Attachments

Login to view attachments
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 10th Jul 2019 09:04
I get it! Use the additional function to stabilize the object. Thank you.
https://www.instagram.com/qugurun/
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 10th Jul 2019 12:03
I feel a bit like Mr Bean

Login to post a reply

Server time is: 2024-11-22 21:29:49
Your offset time is: 2024-11-22 21:29:49