Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Draw sprite higher than foreground  (Read 3126 times)

0 Members and 1 Guest are viewing this topic.
Draw sprite higher than foreground
« on: April 14, 2008, 11:01:51 pm »
  • Personal Text
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1229
I would really like to know if there is a way to draw a sprite, or text above a foreground.
The textbox engine I am using, overlaps the foreground when it comes up, so this would prove that its possible.
Anyone know?

Thanks
-Mewgull
Logged

Goodnight

Once and future Captain
Re: Draw sprite higher than foreground
« Reply #1 on: April 15, 2008, 12:13:27 am »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
You can't change drawing depth from within the Draw event. It all depends on the object's depth. GM internally sorts each object from highest depth to lowest and performs their Draw events in that order.

I don't know if that helps or not... :P
Logged

Giverny

Christ on Acid
Re: Draw sprite higher than foreground
« Reply #2 on: April 15, 2008, 01:12:14 am »
  • Bitte Scheiße
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 1159
I would be easier to make you foreground a backgroound with all the other sprites behind it, and put the needed sprites in front of the BG. Hope I helped :P


Also, I guessing if you put a control object so it draws first, then you could change the order of the other draw events.
~LynkW
« Last Edit: April 15, 2008, 01:14:00 am by LynkW »
Logged
THEGivernyPROJECT
~LynkW-Surrender Global
  • Surrender Global Forums
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.107 seconds with 43 queries.