Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano

witam,

mam problem.

Chce abym mogl dezaktywowac obiekty ktore aktualnie nie znajduja sie w zasiegu wzroku.bo mapy beda dlugie , i chce przyspieszyc ladowanie itp grze.prosze o szybka pomoc

 

thx , Matt

Opublikowano

mysle , ze lubisz nabijasz posty...Jak jush piszesz to prosze cie na temat jak dobrze obaj wiemy to trzeba zrobic w kodzie.

Opublikowano

to ci sie powinno przydac

instance_deactivate_all(notme) Deactivates all instances in the room. If notme is true the calling instance is not deactivated (which is normally what you want).

instance_deactivate_object(obj) Deactivates all instances in the room of the given object. You can also use all to indicate that all instances must be deactivated or the id of an instance to deactivate an individual instance.

instance_deactivate_region(left,top,width,height,inside,notme) Deactivates all instances in the indicated region (that is, those whose bounding box lies partially inside the region). If inside is false the instances completely outside the region are deactivated. If notme is true the calling instance is not deactivated (which is normally what you want).

instance_activate_all() Activates all instances in the room.

instance_activate_object(obj) Activates all instances in the room of the given object. You can also use all to indicate that all instances must be activated or the id of an instance to activate an individual instance.

instance_activate_region(left,top,width,height,inside) Activates all instances in the indicated region. If inside is false the instances completely outside the region are activated.

 

a jezeli nie chcesz sie zbytnio trudzic samemu to mozesz skorzystac z tego:

instance_deactive_region(view_xview[0],view_yview[0],view_width[0],view_height[0],0,0)
instance_active_region(view_xview[0],view_yview[0],view_width[0],view_height[0],1,0)

nie wiem czy to jest dobrze, musisz dopasowac to do swoich potrzeb ale to powinno wygladac mniejwiecej tak jak napisalem

Opublikowano

witam ,

jush sobie poradzilem , ale mysle ze uzyje instance_activate_region a nie instance_ACTIVE ^^

 

EDIT

@ranmus - jush = już - z przyzwyczajenia ^^

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...