Char.Walk(x, y) not working

Started by diegoquarantine, Mon 10/12/2012 00:44:08

Previous topic - Next topic

diegoquarantine


Hi, Im really new whit AGS, just starting to learn how everything works. I was following the video tutorials but I´m stucked in getting my player to walk automatically to a coordinate using the same function than in the video.
I´ve checked and double checked if I wrote it the same and its exactly as in "how to use AGS part 7" video.
this would be the line.

function whiskybot_Look()
{
cRay.Walk(243, 245, eNoBlock, eWalkableAreas); 
cRay.Say("My old whisky bottle. I never go anywhere without it.");
}

The character says the text but wont walk. :-S
I´ll appreciate any comment. Thanks!
I never used this engine before and I think its awesome! if I can learn how to use it correctly I´m going to have a lot of fun with this!

MurrayL

#1
EDIT: I'm an idiot and didn't read your post properly ;)

The problem is here:
Code: AGS

cRay.Walk(243, 245, eNoBlock, eWalkableAreas); 


You've used 'eNoBlock', which means the script carries on to the next line without waiting for the Walk command to finish. Change it to 'eBlock' and everything should work perfectly :)

geork

I just made the exact same error...going on about walkable areas and such :P

SMF spam blocked by CleanTalk