Alphamode default

Previous topic - Next topic

Crivens

Alphamode seems to get reset to 0 after drawing a sprite (or perhaps zoomsprite it's difficult to tell, but it does reset at some point when drawing sprites). Is there a way to set the default value of alphamode? Basically I pretty much use -1 for everything to get all the correct alpha values, and rarely want to use anything else. Just a bit annoying to have to put ALPHAMODE -1 all the time. To be able to say DEFAULTALPHAMODE -1 would be great.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

ampos

check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

MrTAToad

Yes, ALPHAMODE (with a few other commands) get reset after the SHOWSCREEN command.  A command to set a default value would be useful...

r0ber7

while 1
draw stuff
showscreen
alphamode -1
wend

?

spicypixel

Quote from: MrTAToad on 2011-Oct-14
Yes, ALPHAMODE (with a few other commands) get reset after the SHOWSCREEN command.  A command to set a default value would be useful...

:good:
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Crivens

Ocean:that is what I ask for in the first post

As for setting to -1 at the end well some commands seem to reset it

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

kanonet

I think only SHOWSCREEN should reset ALPHAMODE, if a DRAWSPRITE or ZOOMSPRITE resets it, it is probably a bug?
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Ruidesco

Glen Grant, reducing your attention and reading comprehension since the 19th century. :booze:

Ian Price

Glenfiddich? Single Mall Scotch Whisky? :booze: I'll dzrink to zhat! Hic.
I came. I saw. I played.

Falstaff

This is what I found.. and it's not just SHOWSCREEN, because it honestly seemed like every time I had a new function that drew something I had to call ALPHAMODE again. My guess was that it somehow was related to the scope you call it in...