Spawn question

PS_VITA

Active member
coords {x} {z} {a}

  Hi guys,

quick question regarding Spawn - in the manual it states that coords {x} {z} {a}
{x} is relative to the screen's current position, NOT the actual position in terms of the level itself.

my first question is how do I find out what the screen current position is?

And looking at the code below - from the double dragon game I'm learning from, it's written with an "AT" line and a number on it
I was wondering what exactly is "at" used for ?

Code:
spawn	barel
flip	1
coords	690 430
at	200

I'm having a hard time placing enemies on the new stage that I created - and I underestimated how difficult it's been.

And as a bonus I will post a random original sprite or sprite rip each time I make a post  that anyone can use.
 

Attachments

  • brid1b.png
    brid1b.png
    1.3 KB · Views: 5
nsw25 said:
someone may be able to explain it better but ill try.

The at 200 means that when you walk 200 across that player item will spawn at 690 430... this means it will suddenly appear.

for me when it comes to items and destructible etc I always have them spawn at 0 and have very high offscreenkill in their txt file. so for this one I would spawn like

spawn barel
flip 1
coords 890 430
at 0

ive seen other people spawn items as level progresses so whatever works for you I suppose. I do find my way easier to calculate where to place items, especially when you use debug positioning settings, simply walk to where you want it placed and then write the details down.

are there anyways to spawn enemies or weapons at the X , Y  that pertain to my stage x and y coordinates?
 
ChronoCrash said:
are there anyways to spawn enemies or weapons at the X , Y  that pertain to my stage x and y coordinates?
What you have to do is just subtract the value of "at" from the value of position X you want to spawn, resulting in the x value you want. Y, being a vertical position, it is always the same as y.
This taking into account that it is a horizontal stage, of course.
 
Back
Top Bottom