Ags-Serious Error

Started by R4L, Sat 29/11/2003 09:38:11

Previous topic - Next topic

R4L

FollowCharacterEx(COSMO,HOUSE,10,97);
Wait(10);
ChangeCharacterView(COSMO,4);
Wait(10);
AnimateCharacter(COSMO,0,5,0);
Wait(10);
ChangeCharacterView(HOUSE,6);
Wait(10);
ChangeCharacterView(COSMO,1);
Wait(5);  
FollowCharacter(0,1-);

This is my script for if I want my character to go up to the other character( who is actually a house) and use the key on him to open him. After I put the Wait(5); and FollowCharacter(0,1-_; I went to save it and this came up

Exception 0xC0000005 at EIP=0x00480A9D,AGSE 2.56.413

What the hell is that error? When I take out the Wait(5); and FollowCharacter(0,1-);, It has no problem, but the character won't walk ALL the way to the character.

Anyway I can fix this, or anyone have a better script? Please contact me at Xpac3491@aol.com or on my aim name Rap4Life42o, or just post it here. Any help will be appreciated greatly!

scotch

Not sure if this is what's causing the error but it should be FollowCharacter(0,-1); I think.

Why are you using FollowCharacter() to make him walk to the house, instead of MoveCharacterBlocking()?  Follow character is for making characters follow other characters...

R4L

Well cause my character HOUSE is at 222,236. So I tried MoveCharacterBlocking and my main character walked like, not even a quarter of 222,236. So anyway I can do anything?

scotch

It may be that your character is colliding with the house when you try to walk there, check the 'Can be walked through' option on the house character.

R4L

Nevermind, that MoveCharacterBlocking is working all of a sudden. Thanks for the suggestions! ;D

Scorpiorus

#5
QuoteFollowCharacter(0,1-);
It's still strange. I just checked it and yes AGS quits with an error message when tries to parse it. CJ?

~Cheers

Pumaman

Hmm so it does. Well spotted, I'll get the compiler fixed - but yes, the cause of the problem is your script error - it should be

FollowCharacter(0,-1);

not

FollowCharacter(0,1-);

R4L

Allrighty then. Thanks a bunch!  ;D

SMF spam blocked by CleanTalk