Hi guys, I have another question about 2 features presented in AppGameKit ( steam version ) .
The first one is about the text , buttons and sprites .
For example i want to create a menu button with a specific image and with a text above the sprite using the following code.
function MenuButton(img,x#,y#,s#,txt_pre#,text$,s_t#)
CreateSprite(img , 6)
SetSpriteImage(img,6)
setspritepositionbyoffset(img,x#,y#)
setspritedepth(img,0)
setspritesize(img,-1,s#)
FixSpriteToScreen( img, 1 )
if txt_pre# = 1
CreateText(img,text$)
SetTextPosition ( img, 430, 245 )
SetTextSize(img,s_t#)
endif
endfunction img
( *it has some alignment issues , but i will fix them in time )
This is creating my sprite with the specific img ( eg id 6 ) but the text is under the picture.
Questions :
a) How i do put any text above any sprite?
b) Why the text looks i dont know how to detail / explain , it looks like an rpg game text. ( it's nice but what i can do if i want to change it a little ?)
c) Is anyway i can make a code / function to make the calculate width of the text and if is too long , to move it on the next row? For example if I do create a button and i want a long sentence it goes on a single row and outside the button.
About the Loading Screen Model
After some searches on the forum , I came across 2 types of loading screen models. One containing the command delay and one with some function that runs before the main menu system.
There were people that were complaining about the output performance resulted by using any of them for the app
So my questions are :
a) Witch model is better to use in order to have the best performance? i dont know ...
My idea is to have 2 pictures ( a and b for example ). The A comes first with a fade in effect ( just like a power point presentation ) then after i dont know 2-3 seconds to fade out and the picture B should come again using a fade in afect and afer that , fade out after 2-3 seconds then the main menu to appear.
b) Can anybody or if it exist the simplest function of a functioning Loading Screen Model on the forum ? I didn't manage to find at least one compatible with AGK
Thank you for your time,
I hope i did manage to explain what my issues are
If not, i can detail more.
Again, thank you for your time,
Alex