Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Background: Little Question in Background DC
#1
I have not DCed backgrounds lately and something pulls me to ask a question.
Can I make a background that holds the playable area within the middle of the screen and not go anywhere outside the specified playarea?
I have tried playing around with the zboundary but couldn't get anywhere near the solution.
Explanation (Click to View)

[Image: icyboards-ad-468x60.gif]
Reply
Thanks given by:
#2
Sadly, no. zboundary only adjusts things up and down on the image, width goes from the right border towards the left. Therefore, this is not possible without adding any nifty DC- or hex-tricks.

In terms of DC, I can think of an object which will place itself on the right and via itr/k:14 (was it 14? The icicle one, at least) block any object with a special bdy. This is so that balls can still pass and exit the screen while chars etc. cannot.

edit @YinYin: That is the reason why I was referring to it as a "special bdy"; in the hope it'd imply to add it to every frame.
Regarding the startup-issue, that is true. It seems that this is for a mod, though, which gives the opportunity to use some hex-edits (afaik, the latest version of the DLL-Framework uses the perspective-tag exactly for that).
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

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

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by: Electric2Shock
#3
no
but you can make the width smaller than the screen size
you characters will be able to go all the way to the right edge, but not the left

edit: the kind 14 is no proper solution if your characters have frames without a bdy such as rolling - they can roll past the border
also it will require you to drop this object at startup of the background
Reply
Thanks given by: Electric2Shock
#4
Looks like both of you ninja'd.
@YinYin
I did the method you mentioned. I made the width smaller than the screen size. The chars were able to go all the way right. I wanted a fix for that actually.
[Image: icyboards-ad-468x60.gif]
Reply
Thanks given by:
#5
(09-20-2012, 04:35 PM)Blue Phoenix Wrote:  edit @YinYin: That is the reason why I was referring to it as a "special bdy"; in the hope it'd imply to add it to every frame.
Regarding the startup-issue, that is true. It seems that this is for a mod, though, which gives the opportunity to use some hex-edits (afaik, the latest version of the DLL-Framework uses the perspective-tag exactly for that).

yeah you are right - only proper solution right now apart from adding a new left-border value to backgrounds via hex
Reply
Thanks given by: Electric2Shock




Users browsing this thread: 2 Guest(s)