Animation problem

Started by Mats Berglinn, Wed 23/04/2003 13:13:46

Previous topic - Next topic

Mats Berglinn

I have encountered a strange error while tested my game. In this situation the main-character will light a fire with a flintstone. There will be an object vinsible (which appears when you have used an iventory item on another hotspot and because of a global int you must have done this first), an animation of the character and then the animating of the object. When I test the game it do the character animation but then an error appear that say there are no veiws for it but there is a veiw.

Here is the script for it:

//script for hotspot5: Use iventory on hotspot
MoveCharacter(BOOGIE,96,141);
if (GetGlobalInt (8) ==1){
ChangeCharacterVeiw(BOOGIE,21);
AnimateCharacter(BOOGIE,1,0,0);
Wait(20);
SetObjectVeiw(1,15);
AnimateObject(0,0,0,0);
ObjectOff(1);
SetGlobalInt(2,1);
}
else {
DisplaySpeech(BOOGIE,"Me no pyromaniac.");
}

What is wrong with this then?

SSH

Quote from: Mats Berglinn on Wed 23/04/2003 13:13:46
In this situation the main-character will light a fire with a flintstone.

Fred, Wilma or Pebbles?  ;D
12

Mats Berglinn

Very funny. I meant the stone itself, not our all-time favorite cartoon family. Please help me and stop joking or my game will never be finished.  >:( :(

Mats Berglinn

Hey, I'm sorry for being rude. I have been stuck with this game quite awhile and it's so little left before it's completed. It's my very first game which I have worked with for months and it's not a long game. Please help me out.

Timosity

#4
you're setting object 1 view and animating object 0, that could be the problem

Mats Berglinn

Now I got another error while testing. This time it was a "AnimateObject: invalid loop number specified".

The Script is:

MoveCharacter(BOOGIE,96,141);
if (GetGlobalInt (8)==1){
ChangeCharacterView(BOOGIE,21);
AnimateCharacter(BOOGIE,1,0,0);  
Wait(20);
SetObjectView(1,15);
AnimateObject(1,15,0,0);
Wait(80);
ObjectOff(1);
SetGlobalInt(2,1);
ChangeCharacterView(BOOGIE,3);
}
else {
DisplaySpeech (BOOGIE,"Me no pyromaniac");
}

I have tried with a Wait command and changed back the animation speed back to 0 (I changed it to 2 to make it slow down) but it doesn't work. Do you know what's wrong?  ???

Jimi

I think you've put "15" where you are meant to type either 1 or 0 for the loop. 1 is looping, and 0 is NOT looping. 15 is an invalid command.  :)

Mats Berglinn

#7
Thanks. The error is fixed. The game will be ready soon. Very soon.

SMF spam blocked by CleanTalk