I ment that i based my event codes off of RPGmaker wink

anyway, here's the code i made for event based trigger coding:

Code:
// camera trigger setup
function triggerEvent() {
	switch(event_type) {
		case EVENT_PUSH:
			set(my, FLAG1);
			return;
	}
}

action eventTrigger() {
	c_setminmax(my);
	// sensible for push collision
	set(my, INVISIBLE | POLYGON);
	
	// make sure it always has a lower push value then the player
	my.push = player.push - 1;
	
	// make it enable push collision
	my.emask |= ENABLE_PUSH;
	my.event = triggerEvent;
	
	while(me) {
		if(is(my, FLAG1)) {
			reset(my, FLAG1);
			// call your own custom function in here!
		}
		
		wait(1);
	}
}



That should get you started smile good luck.

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/