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 / Scaling text objects

Author
Message
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 10th Apr 2017 20:42 Edited at: 10th Apr 2017 20:44
Is there any chance to scale a text object along the X axis?

EDIT: I would like to create a rotation effect, on a text object along the Y axis, so it must be scaled along the X axis
Dybing
13
Years of Service
User Offline
Joined: 12th Sep 2011
Location: Bergen, Norway
Posted: 10th Apr 2017 21:19
Map the text onto a sprite, then scale and squeeze that however you wish.
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 11th Apr 2017 13:58
Quote: "Map the text onto a sprite"

How?
Dybing
13
Years of Service
User Offline
Joined: 12th Sep 2011
Location: Bergen, Norway
Posted: 11th Apr 2017 14:34
Display the text, grab the relevant part of the screen into a memblock, make that into an image and then make that image into a sprite.
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 11th Apr 2017 15:23
Thanks for the tip. I would like to make this procedure without being visible to the user.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 11th Apr 2017 15:58
Quote: "grab the relevant part of the screen into a memblock, make that into an image "

GetImage make an image, why u need a memblock?
the Scaling you can do with SetSpriteScale
Quote: "I would like to make this procedure without being visible to the user."

just use render command
AGK (Steam) V2017.03.31 : Windows 10 Pro 64 Bit : AMD (17.2.1) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
tmu
7
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 11th Apr 2017 17:48
This whole draw something onto something process could really use some simplification. Customizing the rendering just feels like a hack. I like simple things..

Login to post a reply

Server time is: 2024-11-24 17:06:54
Your offset time is: 2024-11-24 17:06:54