Hi,
One more question: I would like to load a path file from file like this "paths/pathX" where X is a Variable. How to separate variable from normal text?
Thx
Develop games in your browser. Powerful, performant & highly capable.
Ampersand is your friend.
paths\&"pv"
thanks
I've bumped in to one more issue. What i would like to do is to make a choice of movements for enemies. I went with:
--If var = 1 then path movement --if var = 2 then bullet mov --if var = 3 then rts mov[/code:3ofd8gs1] The problem i have is that all of same enemies are being given change of movement and not only one, so i wander how to call only a single sprite? PS. It's funny thought that in prototype where coding was much more chaotic everything worked as it should and now when I'm cleaning it up towards beta it's not
You have to figure a way to pick that sprite, then compare.
Something like:
-distance(friendly.x,friendly.y,enemy.x, enemy.y) <50
Ampersand is your friend. paths\&"pv"
That how it should work?
"paths/path\&global('EPM')"
Thanks for hlep!
Pretty sure it should be all back slashes, and unless you have the file type included in the variable name you'll need another &.filetype.