Re: Self enemy movement. HELP!!!
Hmm lets see..... if i use these events and objects:
Object: Alarm sensor (Hidden object)
*Start of frame
-Start loop "Jump" abs(AIJump("Sapphire crawler"))
*If AIJump ("Sapphire crawler") <0
+On loop "Jump"
-Add 1
If AIJump ("Sapphire crawler") >0
+On loop "Jump"
-Subtract 1
*If AIJump <0
-Set y position to 1
*IF AIJump >0
_Set y position to -1
*If ("Guardian") Overlaps ("Enemy sensor")
-Add 1 to AIJump
*X If ("Guardian") Overlaps ("Enemy sensor")
-Subtract 1 from AIJump
In summary that should make it hit thr floor, but of course without the right event, thats right through the floor it goes.
So the next event line would be:
*If AIJump =0
-Set y position to 0
I hope that will do. :)
See i told you i'm a quick learner. :) :) :)
Re: Self enemy movement. HELP!!!
Right as soon as i get down to eventing the AI'ing the crawlers, the idea drops right outta my head.
I KNOW it's possible to do it, and i know HOW to do it, but where does the idea go.
I think writing it down should help.
Then when the first to levels are finished i can finally get down to designing Prisia. :)
Re: Self enemy movement. HELP!!!
Yep. Writing down is important. During writing down you might actually notice that your idea wasn't as clear as you thought :) (which is why it vaporized once you got close to it)
Re: Self enemy movement. HELP!!!
YES The crawlers have been AI'ed just like i wanted, the odd thing is when they are destroyed there destroy animation doesnt play out. ?:(
Re: Self enemy movement. HELP!!!
Yes there is a bug, you cant use something like "animation disappearing has finshed --> destry object" that wont work, it will stop on the last frame, so you need to compare to the animation frame as well, like "animation frame = 19". That should work.
Re: Self enemy movement. HELP!!!
Or use a different animation and then do "animation has finished"->destroy.
Re: Self enemy movement. HELP!!!
Quote:
Originally Posted by Random
abs makes a value positive. So abs(-10) = 10.
I always thought it made a value = 1
(-5=-1 5=1)
Guess I was wrong.....
Re: Self enemy movement. HELP!!!
What you mean is normalize() (for vectors) or sign() for single values. But MMF doesn't have either.