Help Newbee Object Animation

Started by ozzie dave, Fri 15/07/2005 12:54:55

Previous topic - Next topic

ozzie dave

Can you help me I am having trouble animating an object in my first room.

I have only had AGS for a couple of days and have read all documentation have version 2.7

Completed Room1 with player working ok.

Made up 4 sprites in Sprite Manager went to View Editor, placed 4 frames in Editor It's a small desk fan, blades just revolves around named  5:FAN is this object 5. ?

Went to Room Editor/Objects, in the room1 I have placed a desk, clicked on new object, placed the arrow, and changed the image to my fan object.

Hit the interaction button while picture of the object was shown top of page, according to the help file as follows:

“To animate an object, you first of all need to set the object's view to the correct view number (use the Object.SetView script command), and then use the Object.Animate script command to actually start the animation.”

Into the Interaction Editor I go to ‘Interact Object' â€" Object Set View Number

Where:
Object No: “This must be the object no 5 as above is that correct” ?
New View No:   ?  what view is that ?.

NEXT COMMAND: Start Object Animating
Where:

Object No:   Is it 5 again ?
Loop No:     Is that the start frame number
Speed:        Is it 0 for the start of the frame in the Sprite Editor?
Repeat:      Self Explanatory.

I have tried every combination I could think of but on testing the fan blades
are always stationary.

My Player Character animates and moves using mouse clicks ok.

If I can master a one object animation I will be off and running.

Thanks for the help, only new to this great programme.

Ashen

#1
If the 'fan' object is the first object you placed in the room, it'd be Object 0. It's easy enough to check this: Go to the 'Objects' window (where you placed the object in the first place), and select the fan object. Near the top of the screen it should say:
Quote
There are _ objects in this room

Editing object:    0  [picture of the object]
(or whatever number the object is.)

The 'New View No' is whatever number you set as the Fan animation, in the View editor (from what you've written, I'd guess 5, but you can easily check in the 'View' editor window).

'Loop No' refers to a part of the animation to play. In this case, it'll likely be 0. This really only matters for characters, where there's a different 'loop' played depending on whether the character is facing up, down, left, right, etc.

'Speed' is the speed at which an animation plays. 0 is the fastest, the higher the number, the slower the animation runs - personally, I usually use 3, but you can play with it until you find what works best.

'Repeat', as you said, is fairly obvious.

Hope this helps.
I know what you're thinking ... Don't think that.

ozzie dave

Ashen Thanks for your prompt reply, I started a new project with a new room and made just the fan object again and of course my player, did all of the things mentioned, but alas the fan blades do not revolve.

Ashan have you any idea where I can get a small example demo programme to import into AGS as the one that you could download from AGS is not ready yet !!

I have surfed the net and links this site but none could be found

Thanks >:(

Kal-El

I'm having the same problem to get an object animating.

I have a light that I'm trying to turn on and off in a simple cycle.

This is my code:

object[0].SetView(4,0,0);
object[0].Animate(0, 10, eRepeat, eNoBlock);

All the VIEW values I've entered are correct and so is the loop number but alas, no animation.

Any ideas?

RickJ

You can get the latest DemoQuest from the link below.  Checkout the door and ATM animations for examples

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=23083.0

SMF spam blocked by CleanTalk