Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Trying to make pathfinding engine that works with my camera engine.
- Disconnect4987
- Scratcher
10 posts
Trying to make pathfinding engine that works with my camera engine.
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!
Last edited by Disconnect4987 (March 23, 2024 14:42:01)
- _-_-_-_Hi_-_-_-_
- Scratcher
11 posts
Trying to make pathfinding engine that works with my camera engine.
Sorry Idk this stuff
- Disconnect4987
- Scratcher
10 posts
Trying to make pathfinding engine that works with my camera engine.
totally fine. Sorry Idk this stuff
- Discussion Forums
- » Help with Scripts
- » Trying to make pathfinding engine that works with my camera engine.