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:
// create and display text
// display a background
backdrop = CreateSprite ( LoadImage ( "background5.jpg" ) )
SetSpriteSize ( backdrop, 100, 100 )
// create text
CreateText ( 10, "HELLO AGK!" )
// set its size
SetTextSize ( 10, 6 )
// WITH A VALUE OF 0 ON THE Y AXIS THIS WORKS.
// NOT WORKING WITH POSITIVE VALUE
SetTextPosition(10, 50, 10)
// main loop
do
// apply a random color to the text entity
SetTextColor ( 10, Random ( 1, 255 ), Random ( 1, 255 ), Random ( 1, 255 ), 255 )
// update the screen
Sync ( )
loop
www.skywaygame.com
www.facebook.com/skywaythegame