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.

Dark GDK / Recording the previous status...

Author
Message
Ludo
16
Years of Service
User Offline
Joined: 23rd Jun 2008
Location: UK, Oxfordshire
Posted: 27th Jun 2008 22:41
A bit of neat logic I just came up with while working on my collision detection.

The following code, with assistance from a three slot array, records the last value of an int so if you wish to test for a condition which occurred before the current one use this code:

// Array Deceleration


// Code


// Status Recording


See the three numbers on the left hand side of the screen shot for a display of the feedback variable. The top value is the current status marker (Feedback 0), the second is the recording varible (Feedback 1) and the last is the previous condition record (Feedback 2).



/Ludo

We are here and it is now.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-09-30 01:33:58
Your offset time is: 2024-09-30 01:33:58