Firstly, here is the .mfa to help me explain myself.
(Link lasts for 7 days)
I'm making a random movement for an ingame butterfly and I really need help on two things.
More realistic random movement. Right now it goes at random one of eight ways, and whilst this has worked fine, I'm looking to make the movement more natural and purposeful. What I have right now:
Below the 'Alterable etc. comments', there is
Alterable Value B of 'shadow butterfly' (the object which is governed by the random movement) is >=32
Set alterable value A to Random(8)
(alt a governs direction).
Which of course picks one of eight directions for the butterfly to head. What I wanted to do was make the butterfly turn 45 degrees left, right or remain straight, to give it a better movement, so I replaced Random(8) with Set alterable value C to random(3). Then, if alt c = 1, I subtracted 1 from alt a which would in theory make the butterfly turn one angle left. I did the same for alt c = 2 (no change) and added 1 to alt c =3 (angle right).
But it hasn't worked at all, and I am truly stumped. Can anyone come to my rescue?
Height. Currently the butterfly is always at a position from the shadow, which is governed by the random movement. It's very important for the game that the butterfly can move up and down randomly vertically (within a certain realistic) zone but so far I cannot work it out. It hope to give a greater illusion of depth. I've tested a few methods of my own but nothing seems to work.
If anyone could help me with either of these problems I'd be extremely grateful.