Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Hud on Thu 17/07/2008 12:22:53

Title: More than one Idle View possible?
Post by: Hud on Thu 17/07/2008 12:22:53
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
Title: Re: More than one Idle View possible?
Post by: monkey0506 on Thu 17/07/2008 12:31:02
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.
Title: Re: More than one Idle View possible?
Post by: Matti on Thu 17/07/2008 13:38:28
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..
Title: Re: More than one Idle View possible?
Post by: on Thu 17/07/2008 17:18:01
Even better, use SSH's MultipleIdle plugin!

But as monkey said- for what you describe, the loops are sufficient.
Title: Re: More than one Idle View possible?
Post by: SSH on Thu 17/07/2008 19:39:43
As ghost said: http://ssh.me.uk/moddoc/Idle
Title: Re: More than one Idle View possible?
Post by: Hud on Thu 17/07/2008 21:57:12
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
Title: Re: More than one Idle View possible?
Post by: Khris on Thu 17/07/2008 22:14:16
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.
Title: Re: More than one Idle View possible?
Post by: Hud on Fri 18/07/2008 03:09:05
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!
Title: Re: More than one Idle View possible?
Post by: Khris on Fri 18/07/2008 07:08:31
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.
Title: Re: More than one Idle View possible?
Post by: Hud on Sat 19/07/2008 00:33:53
Thanks Khris, got it all working now.