PopandaulX
Active member
- Joined
- Jul 15, 2013
- Messages
- 189
- Reaction score
- 1
Code:
while true
wait 0
if and
0AB0: key_pressed X
then
while 0AB0: key_pressed X
wait 0
end
// Toggle the switch
0B12: 8@ = 8@ XOR 1
end
end
if 0039: 8@ == 1
then
gosub @drawTexture
end
end
:drawTexture
03F0: enable_text_draw 1
03E3: set_texture_to_be_drawn_antialiased true
038D: draw_texture TEXTURE position 320.0 224.0 size 300.0 300.0 RGBA 255 255 255 175
return
Morning,
I have this extremely simple code that I expected to work a a certain way, but it doesn't.
More precisely, the problem is that the "alpha" channel will not work. My guess is that too many pictures overlay and the transparency dissapears.
I've tried giving up gosub, although it has no sense. Also tried to use enable_text_draw 0 (read somewhere that 1 = permanent, 0 = just once. Anyways, it shouldn't make any difference).
What actually did something was adding a wait in my sub-routine. But it also induced a flicker.