Detect Screen bounds

O Ilusionista

Captain 100K
I need to know how to detect two things via script:

1- The X screenbound (IOW, the edge of the screen), so when I throw a enemy and it reach the edge, he can rebound to the other direction for example.

2- The maximum z area of a stage, IOW to know how big is the "walkable area".


The usage will be to make the enemy, which uses a move which travels on the z plane, to decide if he will go to "up" or "down" or even "rebound" on the z-axis limits of the stage.

Additionaly, where I can get the FULL list of the values which can be got by Getentityproperty? At openborStats you can find it.

Sometimes I fell that is some non-documented things. I just need to see it, then once I get the logic, its easy as pie :)

Any help?
 
Hum, I think I got it:

1- openborvariant("levelwidth") and openborvariant("levelheight") But this will return, I think, the whole widht, not just the actual view.
2-  its openborvariant("player_min_z") and openborvariant("player_max_z")

Yes, as I thought, there are non-documented things. I found those things at the source code.

Oh my,  now we are talking! This is what I was looking for.
Beware, OpenBOR :) Yeah, I am like a kid when got his Christmas gift :)
 
If you want to get the screen size, use hResolution and vResolution instead of levelwidth and levelheight. Use xpos and ypos for screen offset relative to level.
 
yeah, thanks:

"xpos" - Level coords in x position, count from the left side of panels.
"ypos" - Level coords in y position, count from the top of panels.
"hresolution" - Horizental resolution.
"vresolution" - Vertical resolution.
"levelwidth" - How long is the level.
"levelheight" - Panel's height.
 
Back
Top Bottom