Thread: gs2 obstacles
View Single Post
  #3  
Old 10-13-2005, 07:19 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Silent
PHP Code:
function onCreated () {
  
doloadmap();
}

function 
onPlayerenters() {
  
doloadmap();
}

function 
doloadmap() {
  
loadmap("mymap");

I hope this isn't a literal example though - you only need to load the map once
Can also try something like:
PHP Code:
function onCreated()
{
  
loadMap("myMap");
}

function 
onPlayerEnters()
{
  
onCreated();

As for the timeouts, those aren't really 'loops', as you don't have 'timeout = 0.05;' or setTimer(0.05);
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote