More than one Idle View possible?

Started by Hud, Thu 17/07/2008 12:22:53

Previous topic - Next topic

Hud

Hi all,

Just wondering if there's a way to make more than one idleview?

If this is possible, are you able to make different idleviews depending on which way the character is facing?

Basically I'm trying to put a helicopter in my game, and want to have the blade constantly turning. Therefore I need 4 different idle views I'd imagine and I run each one depending on which way the helo is facing.

Thanks in advance for the help!

Cheers
Hud

monkey0506

I can't say I see why you'd need multiple views...that's what loops are for. A loop is a subdivision of a view that specifies which direction the character is facing.

Matti

Yeah, what monkey said.

But if you'll ever need several idle views for some reason: No, problem. Make another view and use the SetIdleView command..

Ghost

Even better, use SSH's MultipleIdle plugin!

But as monkey said- for what you describe, the loops are sufficient.

SSH

12

Hud

Hey guys,

Thanks for the tips. Probably didnt explain it well enough. I cant use loops because it's a top down view. Therefore if the helicopter is facing East I need the blades to animate while it's facing east. Same for north, south and west. Therefore a loop would make it do 360's while it's idle. (I think)

I'll check out SSH's plugin. That should be just what I need.

Cheers
Hud

Khris

No.

A view is composed of 4 different, independent animations (or loops, in AGS's terms), one for each of the four directions (n, e, s, w).
You aren't using 4 views to move the heli around, are you?

The first four loops are named in the view editor (down, right, left, up).
So say you drew 7 frames of the helicopter facing south, blades turning. Put them in the down loop of the idle view. Same for the other three directions. Then set the view as IdleView using a delay of 0. Done.

Hud

Awesome thanks KhrisMUC, that works a treat!

Just wondering if there's anyway now to change the idleview animation speed? Currently it doesnt match that of the 'walking' animation speed?

Cheers in advance!

Khris

Every frame has a delay setting, change it to speed up or slow down the animation.
If your character's AnimationDelay setting is 2, try entering -3 for every frame as the idleview uses an (unchangeable) delay of 5, afaik.

Hud

Thanks Khris, got it all working now.

SMF spam blocked by CleanTalk