Anixias
Member
Hello there. I'm currently focusing on optimizing my game as much as possible before I begin adding multiplayer and other new content. In my terrain object, I am deactivating all par_doodad objects and reactivating a region around the view. Here is the hierarchy of obj_tree (like, all of it's parents to the top):
par_entity
par_doodad
par_collision
obj_tree
Here is the hierarchy of obj_player:
par_entity
par_living
par_good
obj_player
Notice, the only thing trees and players share in common is the highest parent "par_entity". The weird glitch is that I am deactivating all par_doodad objects outside of the view. This includes things like trees, bushes, etc. However, for some really odd reason, if the player walks upwards in ANY way (like at an angle >0 and <180), the player suddenly no longer calls their draw events, but still executes step events, user defined events, etc. but the deactivated trees run NO code and are not included in "with(obj_tree)" calls.
I've tried many things, even simplifying my movement code heavily, and using the debugger. The player is always visible (built-in variable visible = 1 always) even after suddenly not executing draw calls anymore. Also, I noticed the player no longer animates. I know this because I have a user defined event that draws a water reflection of the player and I can see it, but not the player himself. Also, footstep sounds (which are triggered in the step event, after movement) still play, but are suddenly really distorted.
Do you have any idea what might be happening? It also happens to animals and wildlife, if they walk upwards at an angle between 0 and 180 degrees, they stop natively executing draw events, and stop increasing image_index.
par_entity
par_doodad
par_collision
obj_tree
Here is the hierarchy of obj_player:
par_entity
par_living
par_good
obj_player
Notice, the only thing trees and players share in common is the highest parent "par_entity". The weird glitch is that I am deactivating all par_doodad objects outside of the view. This includes things like trees, bushes, etc. However, for some really odd reason, if the player walks upwards in ANY way (like at an angle >0 and <180), the player suddenly no longer calls their draw events, but still executes step events, user defined events, etc. but the deactivated trees run NO code and are not included in "with(obj_tree)" calls.
I've tried many things, even simplifying my movement code heavily, and using the debugger. The player is always visible (built-in variable visible = 1 always) even after suddenly not executing draw calls anymore. Also, I noticed the player no longer animates. I know this because I have a user defined event that draws a water reflection of the player and I can see it, but not the player himself. Also, footstep sounds (which are triggered in the step event, after movement) still play, but are suddenly really distorted.
Do you have any idea what might be happening? It also happens to animals and wildlife, if they walk upwards at an angle between 0 and 180 degrees, they stop natively executing draw events, and stop increasing image_index.