Results 1 to 2 of 2
Thread: Slippery tiles??
-
October 22nd, 2005, 02:58 PM #122Registered User
postsSlippery tiles??
well im making a game and i want my character to run on some icey tiles and when he stops he will slide a bit, ive tried saying basically if(character is standing on a slippery tile){
if (speed >= 5){
speed = 5;
character.x += speed*dirx; //speed = 5
speed -= 0.5;
}
if (speed <= -5){
speed = 5;
character.x += speed*dirx; //speed = -5
speed += 0.5;
} else (speed == 0){
speed = 0;
char.gotoAndStop("idle");
}
}
but it doesnt work at all, i know its close, but way off at the same time, so could someone answer this question for me?
-
October 22nd, 2005, 03:08 PM #21,140pnalr
posts
Similar Threads
-
sliding tiles puzzle
By vbrown in forum Game/AI ProgrammingReplies: 8Last Post: October 26th, 2005, 05:18 AM -
Fence tiles needed
By GreenLantern in forum User Interface / Design DiscussionReplies: 12Last Post: January 21st, 2005, 03:16 PM -
tiles
By yhack in forum Flash IDEReplies: 0Last Post: July 5th, 2004, 05:03 PM -
instantly changing tiles (walkable to non-walkable)
By meatbag in forum Game/AI ProgrammingReplies: 2Last Post: May 25th, 2004, 08:15 AM -
Tiles?
By yhack in forum Game/AI ProgrammingReplies: 2Last Post: May 10th, 2004, 06:56 PM

Reply With Quote


Bookmarks