Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411279 Posts in 69323 Topics- by 58380 Members - Latest Member: bob1029

March 28, 2024, 05:20:37 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityTownhallForum IssuesArchived subforums (read only)TutorialsSurfaces in Game Maker Tutorial!
Pages: 1 2 [3]
Print
Author Topic: Surfaces in Game Maker Tutorial!  (Read 53298 times)
GZ
Level 1
*



View Profile WWW
« Reply #40 on: December 04, 2010, 06:56:47 PM »

i'm having trouble clearing the screen during each end step event. i'm trying to have an exclamation point pop-up above a character as an action-alert style thing. but when i try to do the surface clear thing at the end of the step, the exclamation point doesn't show up, and when i don't do the clear thing, i get this.

i have the surface drawing in the step event and the clearing in the end-step event,  if that helps.

what should i do?
Are you using surfaces to render the entire screen (ie. Chevy's surface example)?

If not, your exclamation point will never be drawn because using the traditional GM draw event, you need to draw the surface in the draw event. You might be missing that code. Even if you are not missing that code, you clear the surface in the end step event, which happens just before the draw event, meaning it will never appear.
Logged

BoxedLunch
Guest
« Reply #41 on: December 04, 2010, 07:00:36 PM »

got it to work, thanks!
Logged
Pages: 1 2 [3]
Print
Jump to:  

Theme orange-lt created by panic