ID:155360
 
Hey everyone...I have been on these forums quite a bit and have learned a lot from the people who have helped me. My game now includes building and other things. Anyhow, I was curious on how to do two things. 1: How to adjust the speed of the players character. and 2: How to make it so objects such as walls/doors/fires cannot be picked up, is there anyway to make the Pickup/Drop verb not affect certain objects?


Again thank you,

Namone
About the first, You can increase the movement speed by changing the world tick var.
world
tick_lag = 0.7

1 is the default setting.

About the second thing you can place a var on objs.

obj
var
canpickup=0
verb
pick_up()
if(!src.canpickup)
return..()

Using 0 for yes, and 1 for no. So when you define the Wall/Door/Fire set canpickup too 1. or however you wish to do it.
In response to WickedlyAndy
Thanks a lot! This is exactly what I wanted to know.
In response to Namone
Not a Problem.
In response to WickedlyAndy
I just wanted to point out that this is the way to make everything speed up. If you want to change the movement speed itself, you're looking at changing the delay between input and movement.
In response to Lugia319
Changing the delay between input and movement would only slow down the response time, not the actual movement. Changing the speed of movement itself is a much better option.

A simple example would be:

mob/Move()
if(!moving)
moving=1
spawn(5)
moving=0
..()
else
return


To slow movement down to 2 tiles per second.