ID:176976
![]() Nov 23 2002, 5:48 pm (Edited on Nov 23 2002, 6:11 pm)
|
|
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 |
![]() Nov 23 2002, 6:27 pm
|
|
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).
|
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 |
Here is a snippet from one of the games I was working on a while ago that featured vehicles that moved like cars.
client 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 |