Author Topic: Odd screen blinking and contrast change  (Read 2269 times)

0 Members and 1 Guest are viewing this topic.

Offline Wretchedlout

  • LV3 Member (Next: 100)
  • ***
  • Posts: 64
  • Rating: +6/-0
    • View Profile
Odd screen blinking and contrast change
« on: May 21, 2012, 02:35:44 am »
Archive everything, you will need to pull your batteries
After you run it, press down and left

Code: [Select]
.whatever
Clrdraw
DiagnosticOff
[FF818181818181FF]->Pic0
0->X->Y
Repeat getkey(9)
X+(getkey(3))-(getkey(2))->X
Y+(getkey(1))-(getkey(4))->Y
Bitmap(X,Y,Pic0
DispGraph
End

After it did the blinking, hold up and it will remain dark


I've tried other hex's but this has worked the best
« Last Edit: May 21, 2012, 02:37:03 am by Wretchedlout »

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Odd screen blinking and contrast change
« Reply #1 on: May 21, 2012, 02:44:31 am »
With bitmaps, you need to tell it how wide/tall it is.  Try putting a Data(H,W) before it that stores to the pic/gdb/etc.
Like...
:Data(23,3)→GDB1
.23 pix wide, 3 pix tall
:[EEA6ECEEA4CA8AECEC]

Then use GDB1 in the Bitmap() command.

What I'm guessing the problem was without those coordinates and looking at that hex, it thought it should draw a sprite 255 ($FF) pixels high and 129 ($81) wide.  Feel free to speculate what happened after that :P


Also, since it's an 8*8 sprite (I'm guessing?  That looks right in 8*8 ) why not use Pt-On? 0.o

Edit: Added the coordinates in wabbit and it worked as it should.
However, it's kind of weird using enter as the quit key because it immediately continues again..maybe use a different key for that ;)
« Last Edit: May 21, 2012, 03:02:49 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue