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 / [BUG] SetTextPosition Broken

Author
Message
CodeMonkey
11
Years of Service
User Offline
Joined: 6th Mar 2013
Location: Ireland
Posted: 23rd Jul 2019 14:28
Hi,

I'm trying to change the Y Position of a text object. SetTextPosition seems to be broken in the latest build (11.06.2019), so does SetTextY.
I've no problem setting the X Position but the YPosition will not accept positive values correctly.
With a positive value of any number the text disappears.
I've tried with the example as well as my own code, adding in SetTextPosition to no avail. Here's the example:

www.skywaygame.com
www.facebook.com/skywaythegame
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 23rd Jul 2019 14:47
Using your code, I set Y to 50 and get this:


I have heard there may be an issue with text rendering behind sprites on MAC (regardless of depth) - are you using a Mac?

Attachments

Login to view attachments
CodeMonkey
11
Years of Service
User Offline
Joined: 6th Mar 2013
Location: Ireland
Posted: 23rd Jul 2019 15:02
I've just tested on Windows and all works. Thanks for the quick reply.
Do you know if there is any workaround for this or any other information on if there will be a fix?

I'm actually trying to use the command in a 3D scene, and it seems to work on Windows fine but not on macOS.
www.skywaygame.com
www.facebook.com/skywaythegame
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 23rd Jul 2019 15:10
Quote: "I have heard there may be an issue with text rendering behind sprites on MAC (regardless of depth) "


I can confirm this, it proper confused me when I first saw this happen, but the code still works on iPhones/iPads so I didn't worry too much about it
CodeMonkey
11
Years of Service
User Offline
Joined: 6th Mar 2013
Location: Ireland
Posted: 23rd Jul 2019 15:20
Well that's the main thing! My game's targeted for mobile initially anyway.

The perks of a triple boot.. Windows it is
www.skywaygame.com
www.facebook.com/skywaythegame

Login to post a reply

Server time is: 2024-11-22 16:22:50
Your offset time is: 2024-11-22 16:22:50