Jump to content


Photo

Is there a reason why instance_deactivate_all()..


  • Please log in to reply
5 replies to this topic

#1 Monolisk

Monolisk

    GMC Member

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

Posted 12 June 2012 - 10:11 PM

any clues?

using game maker studio, just a simple pause object.. and it is freaking out every time causing an error in the runner...

any help is appreciated!
-Monolisk
  • 0

#2 Ashley Phoenix

Ashley Phoenix

    GMC Member

  • GMC Member
  • 316 posts
  • Version:Unknown

Posted 12 June 2012 - 10:19 PM

any clues?

using game maker studio, just a simple pause object.. and it is freaking out every time causing an error in the runner...

any help is appreciated!
-Monolisk


A little more information is needed. What does the error say, what other code are you using.
  • 0

#3 Monolisk

Monolisk

    GMC Member

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

Posted 12 June 2012 - 10:32 PM


any clues?

using game maker studio, just a simple pause object.. and it is freaking out every time causing an error in the runner...

any help is appreciated!
-Monolisk


A little more information is needed. What does the error say, what other code are you using.


oh sry, Im just using this:
Create Event:
bg_pause = background_create_from_screen(x,y,view_wview,view_hview,false,false)
instance_deactivate_all(true);

Draw Event:
draw_background(bg_pause,view_xview[0],view_yview[0])


also in an alarm i am using instance_activate_all()

its just a basic pause object.. the error is "Runner.exe has encountered a problem and needs to close. We are sorry for the inconvenience."

and thats pretty much it.. I think it might be an issue with GM:Studio but im not sure.

also I cant get into the bug reporting thing to save my life, I have tried multiple times but it says my password doesnt match and idk why, its the right password.
  • 0

#4 torigara

torigara

    GMC Member

  • GMC Member
  • 6483 posts

Posted 13 June 2012 - 01:29 AM

oh sry, Im just using this:
Create Event:

bg_pause = background_create_from_screen(x,y,view_wview,view_hview,false,false)
instance_deactivate_all(true);

Well, are you sure what causing the error is the second line, not first? Because there is the common mistake on using _from_screen functions. They take the window coordinates, that is, the top left corner which is currently visible on the window must be specified as (0, 0). If the region you specify is out of the window, it will lead into crash.

Try replacing:
bg_pause = background_create_from_screen(0, 0, view_wview, view_hview, ...

  • 0

#5 TheouAegis

TheouAegis

    GMC Member

  • GMC Member
  • 4722 posts
  • Version:GM8

Posted 13 June 2012 - 02:43 AM

I think Nocturne or Torigara once told me not to use instance_deactivate_all() within create events and room start events. Try moving it to Begin Step or set an alarm to 1 and deactivate in that alarm.
  • 0

#6 Monolisk

Monolisk

    GMC Member

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

Posted 13 June 2012 - 04:41 AM

Ill check it out and see if thats the problem, thank you.


Nope I was wrong, it is the instance_deactivate_all() that is getting the runner error, but I was getting another error from draw_background_from_screen() but i took it completely out and im still getting the runner error :/

Edited by Monolisk, 13 June 2012 - 11:55 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users