Jump to content


Photo

draw event help


  • Please log in to reply
4 replies to this topic

#1 Kill...

Kill...

    GMC Member

  • New Member
  • 94 posts
  • Version:GM8

Posted 17 May 2012 - 12:14 AM

is there a way to make the draw event mot a step event because i want to add money to the amount of money in the game but it adds that amont of money every step. and it needs to be in the draw event because the money is only given if a certain thing is drawn
  • 0

#2 thegame

thegame

    Flying Penguin

  • GMC Member
  • 1404 posts
  • Version:GM:Studio

Posted 17 May 2012 - 01:08 AM

You can't make the draw event not run every frame (your objects won't be drawn then...)

It does not actually have to be in the draw event for that though. There are probably a few ways of doing it, but I will have to know a little bit more. Could you post your code?
  • 0

#3 Kill...

Kill...

    GMC Member

  • New Member
  • 94 posts
  • Version:GM8

Posted 17 May 2012 - 01:20 AM

You can't make the draw event not run every frame (your objects won't be drawn then...)

It does not actually have to be in the draw event for that though. There are probably a few ways of doing it, but I will have to know a little bit more. Could you post your code?

never mind i just figured it out, but thx
  • 0

#4 brac37

brac37

    GMC Member

  • GMC Member
  • 765 posts
  • Version:GM7

Posted 17 May 2012 - 04:51 PM

You can disable the draw event with set_automatic_draw (false) and use screen_redraw () to draw the screen at any time you want.
  • 0

#5 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16794 posts
  • Version:GM:Studio

Posted 18 May 2012 - 09:02 AM

This question does not follow the Advanced Section Rules. Please post in the correct forum in future. Posted Image
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users