Door Games Unlimited

Welcome, Guest.


Subject: Re: Sprites and scrolling and BINs Date: Fri Jan 09 2015 22:02:01
From: Kirkman To: MCMLXXIX

 > When you create the Frame() in which you are loading the BIN file, either
 > use no attributes or set it to BG_BLACK. The problem is that if you give a
 > frame default attributes, anywhere there is no data (no character or
 > attribute for a particular sector) it will fill it in with the defaults,
 > I'm assuming from your screenshots that the attributes for the frame youre
 > using are set to DARKGRAY, which would cause that anomaly.

Yes, this makes the difference. If I initialize the frame with BG_BLACK, the
BIN appears correctly. Thanks!

However, I can't set this value when I make a sprite. 

I tried replacing "0" with BG_BLACK in the frame init routines on lines 874
and 1384 of sprite.js:

this.frame = new Frame(x, y, this.ini.width, this.ini.height, BG_BLACK,
parentFrame);

This worked. The sprite rendered properly and I was able to mask it, no
problems.

--Josh


////--------------------------------------------------
BiC -=- http://breakintochat.com -=- bbs wiki and blog

---
 ■ Synchronet

Previous Message       Next Message
In Reply To: Sprites and scrolling and BINs (MCMLXXIX)
Replies: Re: Sprites and scrolling and BINs (MCMLXXIX)