How do I pathfinder with mouse click rpg

Get help using Construct 2

Post » Tue Sep 13, 2016 9:58 pm

1.: i think i need one object spawn on mouse click over and over when mouse right clicked. and delete the last one?? < but how?

2. :with Boolean?
1. on Right Button clicked
2. -> Sprite1 X is Isset | Sprite1 Set IsSet to true
4. ->Else | Sprite 1 Set IsSet to False
4.Sprite 1 is Set | Sprite 1 Set position to (mouse.x,mouse.Y)
______________________|Sprite Set IsSEt to False

3.

i just i need a pathfinder system with mouseclick... never i used before lol (im noob) :P
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Tue Sep 13, 2016 10:17 pm

With pathfinding behaviour:
on click > find path to mouse.x, mouse.y
on path found > move along path
B
46
S
16
G
78
Posts: 2,168
Reputation: 46,353

Post » Tue Sep 13, 2016 10:37 pm

yea finaly
i make it with on right click mouse -- sprite find path mouse.x mouse.y
on pathfinding path found - move along path ...


ok this is crap with Obstacles solids... come on with solid (wall) you cant get inside you cant touch it!!!

what i need to do ?? he look very poor :/ the Cell size is same with Sprite hero?.. cell border -1 ?

what is the best setup ?? so NEVER NEVER touch the solid!! :)
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Tue Sep 13, 2016 10:38 pm

@plinkie ty i found it :P but still look crap this system for RPg
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Wed Sep 14, 2016 2:00 am

Hey for the hero ? can we see at least the size of hero and the object and its collision size ? you may need to resize the collision for better looks.

What type of bit are you using 16 or 32 cause that can make a different I know when i was making a click to it was hard so i opted out and did move to + or - 32 pixel in a direction so at least it wouldnt clip the walls
B
52
S
24
G
6
Posts: 391
Reputation: 7,845


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 47 guests