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 / Getimage to create Sprites with Text

Author
Message
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 5th Jun 2015 15:20
I know this has been discussed lots, but do you think I can find any of those old threads!? Is anyone else having trouble searching these boards?

Anyway:

I have an image. I want to place it off-screen, draw some text on it, get the resulting image, so I can use the newly created image as a sprite.

Here's what I have so far - it grabs the sprite image just fine, but no text to be seen



V2 T1 (Mostly)
Uzmadesign
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 5th Jun 2015 15:44
RESOLVED!

I hadn't set the size of the text! - The text WAS there, just too small to see!!!

Just added SetTextSize(t,100) after the createtext line.

V2 T1 (Mostly)
Uzmadesign
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Jun 2015 16:59
I see you found the secret that many miss - setViewOffset()

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 5th Jun 2015 18:00
Quote: "Penetrating so many secrets, we cease to believe in the unknowable. But there it sits nonetheless, calmly licking its chops."
- (H L Mencken)

V2 T1 (Mostly)
Uzmadesign

Login to post a reply

Server time is: 2024-09-29 01:20:24
Your offset time is: 2024-09-29 01:20:24