Trying to make pathfinding engine that works with my camera engine.

id: 749662

category: Help with Scripts

posts: 3

I'm working on a real time strategy game and I need a pathfinding engine that will work with my camera engine. I need something that works for the following camera engine:

Backdrop:

when green flag clicked
set (Camera X) to (0)
set ( Camera Y) to (0)
(Camera control)

Define (camera control)
change (Camera X) by ((key d pressed)-(Key a pressed)* (25)
change ( Camera Y) by ((key w pressed)-(key s pressed)*(25)

Sprite:

when green flag clicked
hide
(spawn (1)

define (spawn #)
repeat #
create clone of myself

when i start as a clone
show
set (x) (for this sprite only) to (0)
set (y) (for this sprite only) to (0)
forever
switch to costume 2 (a big sprite)
go to (x)-(camera x) (y)- (camera y)
switch to costume 1 (normal sprite)

Any insight on this would be greatly appreciated! Thank you!
Sorry Idk this stuff

_-_-_-_Hi_-_-_-_ wrote:

Sorry Idk this stuff
totally fine.