Quote:
Originally Posted by Liberated
Tig should know right? He made a similar system for GK didn't he?
|
Quote:
Originally Posted by cbk1994
Kingdoms has custom level links, e.g. levels won't fade out when using actual level links on Kingdoms.
|
Yep, I actually refuse to use default linking in any of my projects because I find that it's insecure, glitchy, and difficult to manage.
I always use custom linking joined to a class. That way if I want to edit the linking process later, I can do so. Also, it prevents several glitches.
An example of a custom link on one of my most recent projects:
PHP Code:
function onCreated() {
this.setShape(1, 64, 32);
this.warplevel = "newlevel.nw";
this.warpcoordinates = {30, 20};
this.dir = 2;
}
join("warpfield");
When the player touches the warp field facing this.dir's direction, it schedules an event to warp the player in 0.125 seconds and sends a trigger to a clientside weapon that triggers a fading of the screen for 0.1 seconds. Then, also in the clientside weapon, onPlayerEnters() un-fades the screen.