The Daily Click ::. Forums ::. Klik Coding Help ::. Silly MMF or silly me?
 

Post Reply  Post Oekaki 
 

Posted By Message

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
1st June, 2009 at 01:03:17 -

Why does my animations get disturbed* when I press any of the default playerkeys (Enter, Space, Shift, Control, Up, Down, Left, Right) ?

*They start over.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
1st June, 2009 at 01:22:39 -

Is it set to a movement?

 

  		
  		

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
1st June, 2009 at 04:47:54 -

well that depends on how you have everything set up, little bit more info would be nice, is it a side scroller up down game puzzle game what?

 
[Game design makes my brain feel like its gonna explode.]

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
1st June, 2009 at 10:01:28 -

It's a platformer and <leftkey is prezzzzzzed> triggers the animation.

 
n/a

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
1st June, 2009 at 10:07:53 -

Are you using a custom engine or one of the in-built ones?

 
If wishes were fishes then we'd all smell like ladies' underwear.

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
1st June, 2009 at 13:15:23 -

Aren't they supposed to be animated when you press the buttons? O_o

 

  		
  		

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
1st June, 2009 at 22:45:49 -

It's supposed to animate While walking but I don't want the animation to restart when I press another key...

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
1st June, 2009 at 23:11:04 -

I think you might have to share your source with someone. o_O

 

  		
  		

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
2nd June, 2009 at 00:33:52 -

just negate all the other keys. Example:

X Repeat while pressing w
X Repeat while pressing s
X Repeat while pressing a
Repeat while pressing d

so the animation will only work when you press the "D" key

 
n/a

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
2nd June, 2009 at 16:17:46 -

Hmm yeah, but that would mean that the animation stops when I press CTRL, for example.

I want the animation to be continuous AS LONG AS I'm walking, no matter if I press ctrl, space, enter or another arrowKey.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd June, 2009 at 19:49:00 -

Just don't directly map the animations to a keypress. Check for the player's current movement to play animations.
Do you use an alterable value or counter to make the player move? If so you can check what it's value is

0 = play stop
less than 0 = face left and play walk
greater than 0 = face right and play walk

 
.

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
3rd June, 2009 at 00:09:26 -

Thanks Andy, it works great!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click