RyanC
Member
Hi Guys,
I often use the with(obj_something) statement and was wondering if anyone knows what kind of performance hit there is if the obj_something does not exists in the game.
for example lets say obj_enemy_1 does not exist in the game yet.
would these two functions have the same performance hit.
with(obj_enemy_1)
{
x +=1
}
with(obj_enemy_1)
{
if place_meeting(x,y,obj_floor) etc etc and lots of heavy stuff...
}
I often use the with(obj_something) statement and was wondering if anyone knows what kind of performance hit there is if the obj_something does not exists in the game.
for example lets say obj_enemy_1 does not exist in the game yet.
would these two functions have the same performance hit.
with(obj_enemy_1)
{
x +=1
}
with(obj_enemy_1)
{
if place_meeting(x,y,obj_floor) etc etc and lots of heavy stuff...
}