Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Background: Size and Position
#4
All defined through the
width
. Typical BG-start looks like this:
    DC-Code:
name: HK_Coliseum
width: 794   zboundary: 316 442
shadow: bg\sys\hkc\s.bmp  shadowsize: 37 9


794 equals the game's screen size, thereby allowing you to walk everywhere. Larger values will add bg-scrolling whereas lower will make portions of the bg inaccessible. You are in luck, as the accessible area starts from the right, thus you can have left portions for decoration only. Would, for example, look like this:

[Image: Cliff.png]
https://lf-empire.de/lfe-fileplanet/back.../470-cliff

Beware that anything that is dropped into such an area just disappears once hitting the ground. If the blocked zone is too wide, you'll also see projectiles disappearing mid-air.

If you, however, plan on having a scrolling background, i.e. >794 pixels, then this whole ordeal won't work. You'd have to spawn an object and use a zero placer to block access (itr/k14 etc). Works only semi-well because of the randomness of weapon-spawns, ability to roll through itr/k14, etc.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:


Messages In This Thread
Size and Position - by seikosantana - 05-22-2018, 04:17 PM
RE: Size and Position - by Silverthorn - 05-26-2018, 01:08 PM
RE: Size and Position - by seikosantana - 05-27-2018, 02:32 AM
RE: Size and Position - by Silverthorn - 05-27-2018, 07:39 AM



Users browsing this thread: 1 Guest(s)