How to position the player

Hi Daniele.
We are here to help, but we strongly suggest you to read the manual, because this is a very basic question which is answered there https://dcemulation.org/index.php?title=OpenBORManual

Search for this line:
spawn1 {x} {z} {a}

It will be really important to read the whole manual, trust me.
 
O Ilusionista said:
Hi Daniele.
We are here to help, but we strongly suggest you to read the manual, because this is a very basic question which is answered there https://dcemulation.org/index.php?title=OpenBORManual

Search for this line:
spawn1 {x} {z} {a}

It will be really important to read the whole manual, trust me.

I have tried to follow the manual but I cannot understand it. unfortunately it is difficult for me. Can you help me here?
 
Just search for that line and read what it says, its basically all that you need to do, really.

spawn1 {x} {z} {a}

Optional.
{x} is relative to the starting edge of the screen. {z} is relative to the stage's minimum z value. {a} is relative to the ground.
{x} is measured from left for levels with direction right and both and it's measured from right for levels with direction left.
Although {x} could be any value, its maximum value is 320. Value more than 320 will be deducted by 320. For instance, setting x = 540 will put player in x = 220 instead (220 = 540 - 320).
However, it's possible to give {x} negative value in direction both and right or big value in direction left and leftright to put player1 offscreen when level start. Why would you want this though?
{z} could be any value but it can't put player 1 beyond maximum z value.
Setting {a} > 0 makes player falls down on respawn. Default value for a is 300. NOTE: {a} only effect respawn not when level starts.
If there's a hole on player's spawn spot, the spawn spot will be shifted up or down to safe place temporary.
edit: by the way, I need to update this part of the manual. The maximum X value is not 320, but your video resolution width.
 
Back
Top Bottom