ID:176976
 

i cant get the turn proc to work and im using it PERFECTLY

turn(WEST, 45) <--this does not work,

18:turn :warning: statement has no effect

is what i get every time
You're right, you're using it perfectly, for doing nothing. The turn() proc returns a value, and you must assign it to another variable, as in var/A = turn(WEST,45).
In response to Garthor
mob
player
icon='car.dmi'

proc
North()
step(src,NORTH)


proc
West()
var/A = turn(WEST,45)


i dont know where to use the A, plus see that north proc, i want the player to move in what ever direction hes facing from the turn. i know im asking a bit much but ive never worked with these procs before. thanks
In response to SkylineR34
client
North()
step(mob,mob.dir)
West()
mob.dir = turn(mob.dir,-45)
In response to SkylineR34
Here is a snippet from one of the games I was working on a while ago that featured vehicles that moved like cars.

client

North()
step(mob,mob.dir)

South()
mob.strafe(mob.dir,"reverse")

East()
mob.dir = turn(mob.dir,-45)

West()
mob.dir = turn(mob.dir,45)


the strafe() proc was one I created that moved the vehicle one tile in the opposite direction it was facing. This should give you some clues as to how you can get car-like movement. You'll have to do you're own reverse code, though. :P

~X