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.

Newcomers AppGameKit Corner / Dynamic text with physics

Author
Message
Maghnus
4
Years of Service
User Offline
Joined: 12th Jul 2015
Location:
Posted: 13th Jul 2015 00:35 Edited at: 13th Jul 2015 01:13
This issue was posed on the Steam forums. The person in question wanted to know how to create text, even dynamically (say from a user input), and turn it into a sprite with physics, since the physics commands don't seem to work on text IDs. I enjoy a challenge and was bored, so I came up with a solution. I don't know if this is the best solution, necessarily. I'm pretty new to this. Still, maybe it'll help someone else.

BatVink
Moderator
16
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Jul 2015 08:48
I would do it pretty much the same way

I don't think you need the SetImageTransparentColor(). when you getImage() the background is already transparent. When you set the background, it seems to give the text a weird halo effect.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2019-10-17 15:02:20
Your offset time is: 2019-10-17 15:02:20