Results 1 to 2 of 2
Thread: need help with platform code
-
July 3rd, 2005, 12:26 AM #135Registered User
postsneed help with platform code
if (air == false && !Key.isDown(Key.LEFT) && !Key.isDown(65) && _currentframe <4 or air == false && !Key.isDown(Key.RIGHT) && !Key.isDown(65) && _currentframe <4 or air == false && !Key.isDown(Key.CONTROL) && !Key.isDown(65) && _currentframe <4){
state = 1;
}
if (Key.isDown(Key.LEFT) && air == false && !Key.isDown(65) && _currentframe <4 or Key.isDown(Key.RIGHT) && air == false && !Key.isDown(65) && _currentframe <4) {
state = 2;
}
if (Key.isDown(Key.CONTROL) && air == false && !Key.isDown(65) && _currentframe <4){
state = 4;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
This is my code for changing the stance or state of my player.
However, When I want him to attack, he goes into an infinite attack loop(attack is state 4) How can I fix this?
-
July 4th, 2005, 01:53 PM #235Registered User
postsahem,
BUMP
Similar Threads
-
Post html code in question
By waffe in forum Forum Guidelines/SuggestionsReplies: 12Last Post: January 24th, 2008, 03:33 PM -
[FMX] Interactive Circuit builder...need a few tiny bits of code, so very confused!
By shangrula in forum ActionScript 2 (and Earlier)Replies: 0Last Post: March 10th, 2004, 01:08 PM -
Viewing Code
By .soulty in forum ActionScript 2 (and Earlier)Replies: 10Last Post: July 9th, 2003, 04:41 PM -
aaah please help with this code?
By ave in forum ActionScript 2 (and Earlier)Replies: 12Last Post: May 6th, 2003, 12:34 PM -
code consolidation
By subquark in forum ActionScript 2 (and Earlier)Replies: 15Last Post: January 21st, 2003, 08:45 PM

Reply With Quote

Bookmarks