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 DBPro Corner / Text and Images

Author
Message
Dcrew
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location: Trapped in FPSC Engine
Posted: 6th Mar 2010 22:27 Edited at: 6th Mar 2010 22:28
Hi! I have this at the start of my code:



But my text won't go over the image, It goes over the background but not that image.. why?

Help Appreciated!!

Dcrew 2010
FPSC Game Maker
3D Max Modeller
Krilik
18
Years of Service
User Offline
Joined: 16th Mar 2006
Location: Arizona, USA
Posted: 7th Mar 2010 10:30
Sprites are automatically drawn over text. To work around this you would want to paste the sprite to the screen instead of drawing the sprite to the screen. Like this:



You also don't need to load images every frame. You can load your image once before your main loop to hold it in memory. The only time you need to load it again is if you delete it.
Dcrew
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location: Trapped in FPSC Engine
Posted: 7th Mar 2010 12:16
Thanks very much! Got it working

Dcrew 2010
FPSC Game Maker
3D Max Modeller

Login to post a reply

Server time is: 2024-11-23 19:46:35
Your offset time is: 2024-11-23 19:46:35