I wonder if someone could help me on a litlle problem. I tried to make an RPG control system But I'm having some problems on some areas sutch as:
-Move the character (because the comand move object it's kinda fast and I don't know if is the best option for this case)
-Move left/right (I want the character to mode to left and not to turn to left.... the problem is that the way I'm doing may be kinda complicated to handle the camera later)
- Move the camera (moving the camera along with the character it's no problem but if the character turns left I would want the camera to rotate till it was pointed to the character's back)
Here's the previous code:
if upkey() = 1
rotate object 1, 0, 180, 0
endif
if downkey() = 1
rotate object 1, 0, 0, 0
endif
if leftkey() = 1 then
rotate object 1, 0, 90, 0
if rightkey() = 1 then
rotate object 1, 0, -90, 0
if upkey() + downkey() + rightkey() + leftkey() > 0 then
move object 1, -1
The rotate code was created by Sven and I thank him for that but it's not simple as I whould want it to be :
KiTsUnE wOrKsHoP