The Daily Click ::. Forums ::. Klik Coding Help ::. Problem with Playing an Animation
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
1st May, 2011 at 18:37:47 -

For some reason, when i make the player go up a ladder it only plays the 1st of 2 animations in the climbing animation i make it play. Is there a reason that it doesnt play the second frame?

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
1st May, 2011 at 21:59:59 -

Are you using default movement? If so, stop. If not, be more specific on how your engine works.

 
http://www.facebook.com/truediamondgame

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
2nd May, 2011 at 02:26:53 -

No I use the PLatform Movement Object. I dont know if tat may be the problem or not

 
n/a

vetmora120



Registered
  07/01/2010
Points
  273
2nd May, 2011 at 13:07:53 -

Sometimes, if the event that changes the animation repeats itself if conditions are met, it will continuously change the animation. When this happens you'll only see the first frame. You could try adding an 'only one action when event loops' to the condition that changes to the climbing animation.

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
2nd May, 2011 at 14:20:23 -

I always add an 'if animation "something" is Not playing' condition to the event, works wonders!

Edited by Eternal Man [EE]

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
3rd May, 2011 at 23:35:55 -

Neither works, the only one action condition actually makes the animation play jumping instead of climbing.

 
n/a

vetmora120



Registered
  07/01/2010
Points
  273
4th May, 2011 at 10:09:12 -

Oh, that would probably be because you are not colliding with the ground. In the event for the jumping animation, add 'if animation climbing is NOT playing'.

 
n/a

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
5th May, 2011 at 03:52:03 -

I tried that and still got nothing. I even tried forcing it to the second frame of the animation and it wouldnt

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
5th May, 2011 at 15:13:54 -

Try something like turning one of the player's flags to *on* whenever he's overlapping a ladder, and then change his animation to "climbing" whenever that flag's set to on.

Then you'd have to have another event check to shut that flag off whenever he's not overlapping a ladder AND wherever you have the walking animation (and etc) make sure that it won't change to walking animation unless that same flag is off.

Maybe that will work?

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
5th May, 2011 at 16:00:38 -


Originally Posted by Jon C-B
I tried that and still got nothing. I even tried forcing it to the second frame of the animation and it wouldnt

Did you set the frame to 1 or 2? Animations are 0-indexed, so that if you have two frames, the second one will be 1, and the first will be 0.

What are your animation settings? Is it set to loop? In the settings, the frames are 1-indexed so don't let what I just told you confuse you.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
6th May, 2011 at 23:01:40 -

I am actually using a flags system for the ladders. I even just put "when flag 0 is on > play animations climbing" and it didnt work. and yes i did force it to number 1 in the expression editor when i tried that.

 
n/a

tetsuya_shino



Registered
  12/08/2004
Points
  491
7th May, 2011 at 02:17:43 -

Have you tried added more frames? Sometimes only having one or two frames of animation can cause problems, although very rarely. What is your animation speed?

Since you are using flags, did you Turn Flag #0 off at Start of level? (Assuming the hero doesn't start the level on a ladder.)

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
7th May, 2011 at 02:40:18 -

It seems that you're having conflicing code. The program is probably telling it to show multiple animations at the same time, like jumping since the character isn't on the ground and climbing since you're going up a ladder. Try finding what animation it's trying to play(probably the jumping animation) and making it so that when climbing up a ladder a flag is set on + tell it to only display the jumping animation when that flag is off.

//EE

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image
   

Post Reply



 



Advertisement

Worth A Click