Direction->Look in the direction of...
Then choose 'Relative to... foodobject'
Printable View
Direction->Look in the direction of...
Then choose 'Relative to... foodobject'
that almost works. it as far as i could get, that it won't turn after the orginal turn and so he just walks by it. how to make him turn to the food after he turned once is the problem.
use the condition 'always'... look in dir of
tried that. it still won't work. then i fixed it up differnetly and he goes under the food
X
o
(x food 0 him) and spazes out. literally starts to go in every dirction at once. this is what i got closest with
always
internal flag 1 on
only one action when event lops
-look in dir reletive food
-cancel walking group.
I dont understand what the problem is exactly... Try to explain what happens and what is supposed to happen. Keep in mind I have no idea what your code looks like.
What do you mean by "x food 0 him"? that makes no sense..
May post the source code?
x= the food and then the o= where he is.
this is the code. - means event, not a condion. (no idea what a source code is.)
always
internal flag 1 on
only one action when event loops
-look in dir reletive food
-cancel walking group.
but what happens is yes he goes to the food once, and continues to bonce around. or at you last suggestion (in which i removed the last event,) he walked under where the food was and twiched back and forth. like he is trying to go 2 ways at once. of course he can't so he just sits there.
The source code is your .mfa file.
This spazing out you are talking about probably happens when he reaches the food. He is walking back and forth over the food rapidly. You need to make him stop moving when he reaches the food.
Try this:
or this:Code:Is X overlapping food?
-Stop
You can get the 'is overlapping' condition by right-clicking X, select collisions->overlapping another object.Code:Is X overlapping food?
-Set speed to 0
You can get the 'Stop' action by selecting movement->stop under X.
Set speed is also there.
one problem. the chao is maybe... 100.. 150 pixels down frame. i think he's lined up with the food but... it doesn't matter, i fixed that. what i need is how to make him turn in to the food after the inital turn.
Well unless you post your source code I can't figure out how to help you.
ok i will. one thing though. i erased all codes relating to food because something in hunger was makeing him, after sleeping, walk away from his course. i don't know what was wrong but maybe you can find it. i also need to do it my self so please don't finish it and give it back.. XD.
tell me
do you want the hunger codes in there?
how do i give you the soure code?