Trying to make pathfinding engine that works with my camera engine.
id: 749662
category: Help with Scripts
posts: 3
Mar 23, 2024 14:39:09
Trying to make pathfinding engine that works with my camera engine.
view on scratch
view on legacy ocular
Disconnect4987
loading
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!
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!
Mar 23, 2024 14:49:23
Trying to make pathfinding engine that works with my camera engine.
view on scratch
view on legacy ocular
_-_-_-_Hi_-_-_-_
loading
Sorry Idk this stuff
Mar 23, 2024 16:06:06
Trying to make pathfinding engine that works with my camera engine.
view on scratch
view on legacy ocular
Disconnect4987
loading
totally fine. Sorry Idk this stuff