So I'm learning how to use Dream Maker and I just put in floors, walls, and a player. However moving the player is REALLY lagy. I've looked at several post about this but none help me. I have one source file called "Hello World.dm"
Here it is
turf
wall
icon = 'wall.dmi';
density = 1;
floor
icon = 'floor.dmi';
start
icon = 'start.dmi';
mob
Login()
world << "Hello World!";
loc = locate(/turf/start)
..();
icon = 'player.dmi';
var screams = 0;
var scream = 1;
verb
smile(who as text)
world << "[usr] smiles at [who]";
say(txt as text)
world << "[usr]: [txt]";
scream(scream as text)
if (scream == 1)
if (screams < 3)
world << "[usr]: [scream]!!!!!";
screams = screams + 1;
else if (screams == 3)
world << "[usr]: [scream]!!!!!";
world << "(you feel your chest start to hurt)";
screams = screams + 1;
else if (screams == 4)
world << "[usr]: [scream]!!!!!";
screams = screams + 1;
else if (screams == 5)
world << "[usr]: [scream]!!!!!";
screams = screams + 1;
else if (screams >= 6)
scream = 0;
world << "You cant scream anymore!";
else if (scream == 0)
world << "You cant scream anymore!"; </3>
ID:2653069
Feb 5 2021, 4:19 pm
|
|
Feb 5 2021, 4:20 pm
|
|
Sorry, the indents weren't added for some reason.
|
Moved this over to Developer Help. Could you define what you mean by "really laggy"? Do you mean that it's a low framerate? If so, you might want to look into the world.fps variable, and consider modifying it. Higher FPS values yield a smoother feel at the slight cost of performance.
|
In response to Spevacus
|
|
"Really Laggy" meaning its very choppy(the movement)
|
In response to Spevacus
|
|
Also I tried typing " world.fps = 40 " in my mob and it just tells me that "left-hand side must be an object" what does that mean?
|
In response to Duffka
|
|
That error indicates you tried to specify that assignment somewhere you can't, in other words it's a syntax error. No biggie!
You can adjust the variables of the "world" by assigning them the same way you would reassign normal mob variables or procs. Like so: world Give that a shot and see if it feels smoother! |
In response to Spevacus
|
|
I fixed it before you got back by slapping it in the Login() proc. Also do you know how to make a clickable object that will disappear when clicked?(like a door that blocks the player then opens just vanishes and lets the player through when clicked)
|