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: Deactivating object outside view  (Read 2127 times)

0 Members and 1 Guest are viewing this topic.
Deactivating object outside view
« on: June 19, 2012, 07:31:38 pm »
  • Make your best move ass-bite!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 139
I will put in this code:
Code: [Select]
instance_activate_all()
instance_deactivate_region(global.viewxview,global.viewyview,global.viewxwidth,global.viewyheight,false,true)
instance_activate_object(objControl)
instance_activate_object(objWeapon)
instance_activate_object(objLink)

all that jazz and everything in the room is still activated, every single object. its extremely annoying and it makes the game run slow, can anyone help me?
Logged

DaSpirit

The Quiet
Re: Deactivating object outside view
« Reply #1 on: June 20, 2012, 01:12:40 am »
  • The Mad Programmer.
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 87
Go on GameMaker and run your game in Debug mode. Then, in the debug window, go to Tools>Show Global Variables. See if your global variables are the problem.

If this is not your problem, then I don't know what the problem is. We might have to see your GameMaker file.
Logged
I support:
Pages: [1]   Go Up

 


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



Page created in 0.143 seconds with 39 queries.

anything