How do I fix my Over-zealous sprite?

Get help using Construct 2

Post » Sat Jun 13, 2015 11:45 am

Hello!
Currently dabbling with a little project, although I am some what stuck on my path finding as the sprite keeps rotating as opposed to staying upright. Is there anyway to cycle through sprites as in use Sprite A to move up, Use sprite B to move right and so forth?
Also, not connected directly to this question although I know that free-roaming AI will be a nightmarish mess of commands but I require some form of basis to start working from. Any ideas from our lovely community?

Many love and thanks,
Damion
:mrgreen:
B
3
Posts: 7
Reputation: 189

Post » Sat Jun 13, 2015 11:48 am

Couldn't you just set rotate to NO in the pathfinding properties?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jun 13, 2015 12:09 pm

For the free roaming AI, you could store a range of where it can move, eg max x, min x, max y, min y, then use the pathfinding behaviour, select a random x and y coordinate within that range and have the character move to it with pathfinding. Once they have reached it, move to another random point, repeat. This may not be exactly what you're looking for, but it may be a start.
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Sat Jun 13, 2015 12:24 pm

Thank you for the speedy replies.

LittleStain wrote:Couldn't you just set rotate to NO in the pathfinding properties?

If I do this, the sprite just refuses to move in general. Although I do have a string of terrible luck so maybe it just hates me?

briggybros wrote:This may not be exactly what you're looking for, but it may be a start.

It is a start and I thank you, any further information would be more than appreciated but you have help out massively.

Many Thanks guys,
Damion
B
3
Posts: 7
Reputation: 189

Post » Sat Jun 13, 2015 3:35 pm

https://www.scirra.com/arcade/other-games/bunnies-603

How about this? The rabbits are bound within the region of the field and wander around it. They also go into holes and come out of other ones.
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 20 guests