Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / need a peice of code.

Author
Message
Blazer
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 12th Feb 2003 03:34
I need a peice of code that works with my collision code to stop the animation if the guy stops moving.

I made a colisition using the tut in DB. I want it so ONLY if my guy is facing directly at the wall and dosn't move at all, then he stops animation. He can walk along the wall with his sholder scraping it and still walk so I can't just stop animation when he is tuching it.

Plese help. thx
As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 12th Feb 2003 05:51
lets call him object 1



I hope you understand the concepts behind that. If your position does not change after you attempt movement, it will set you as idle, because basically you did not move.
Blazer
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 14th Feb 2003 01:20
do you put the old pos before the loop because its not working?

As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4

Login to post a reply

Server time is: 2024-05-18 12:40:19
Your offset time is: 2024-05-18 12:40:19