Platforms/Non-moving Entities' Disappearance After Going Back

maxman

Well-known member
At the beginning of the stage(s), I walk all the way while there are just some entities like water and platforms that stay there near the beginning. When I reach near the end of the stage before going to LevelEnd, I go back all the way to where I started and the entities disappear after going back. Example, I walk and jump to the first platform and jump off from there. Then I jump to 2nd platform and jump off too before reaching near the end of the stage. When I get to the near end of the stage, I go back by jumping to 2nd platform and off. When I was about to reach the first platform that I jumped before, it's gone.

Also, I spawned several water entities in the stage in code all the way from beginning to the end of the stage, but in the in-game, the rest of entities I spawned are cut in half in the whole stage.
 
I don't know how offscreenkill does. I'm confused with its value of how it does. Care to explain about it 'cause I don't see it in the manual (except the Openbor quicksheet)?
 
It stops entities being removed when offscreen, the higher the value the further offscreen they can be before being removed.  Set it very high to stop them being removed altogether (higher value than your longest stage).

Code:
offscreenkill {value}

~Determines how far an entity could go offscreen before removed or killed instantly. For your information, OpenBoR kills entities which are too far offscreen to reduce number of active entities.
~For example, projectiles and arrows are removed automatically by OpenBoR when they are 200 pixels offscreen. Doesn't matter which side they go offscreen to.
~In levels which don't allow scrolling back, this is useful to remove unused entities which are left offscreen. However, in levels which allow scrolling back, you might need to set this to avoid entities being killed while you still need it.
~{value} is distance in pixels measured from screen edges (left, right, up and down).
~Default value for normal entities is 1000, for arrows and projectiles it's 200 and for bikers it's 300.

This was from the dcemulation.org manual - http://dcemulation.org/?title=OpenBORManual
 
OK. So I set the entities with offscreenkill which the value has to be longer than the longest stage. Also, I did set the offscreenkill with over 10000 value on the water and its sprite image is 368 pixel width, but I'm not sure if I'm doing it right. Here's my offscreenkill set for the water entity.

name Water
type    none
alpha  0
shadow  0
speed    8
nomove  1
offscreenkill 10045

EDIT:
Thank you guys very much! :D
 
Back
Top Bottom