Trancparency in PUT? - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html) +--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html) +--- Thread: Trancparency in PUT? (/thread-7214.html) Pages:
1
2
|
Trancparency in PUT? - Nathan1993 - 05-10-2005 I would be interested to know if such a thing exists as trancparency in the PUT statement. If this command does indeed exist, please elaborate to the fullest extent possible. Trancparency in PUT? - Anonymous - 05-10-2005 put (0,0), myimage(0), trans Trancparency in PUT? - Z!re - 05-10-2005 Docs\gfxlib.txt: PUT Trancparency in PUT? - Nathan1993 - 05-10-2005 I got it. Now... I have this program. Code: declare sub Init Seems simple... on line 7 (the put line) It says expected: idenifier. That is all it says! HELP! Trancparency in PUT? - Z!re - 05-10-2005 Grass is never initialized.. You cant DIM SHARED inside a procedure (sub/func.) Also: Put (x, y), @array(index) [, parameter] Trancparency in PUT? - Anonymous - 05-10-2005 i could be wrong, but i think you should only use "@" if you are "put"ting a pointer... Trancparency in PUT? - Z!re - 05-10-2005 Nope.. If you use a pointer you dont need the @ If you're PUTing an array, you need the @ Trancparency in PUT? - Anonymous - 05-10-2005 Erm, no, if you dont use a "@" with a pointer it crashes (spoken from experience here......) Code: If Not char[0].invisflag Then Put (char[0].x - camerax%, (char[0].y - 8) - cameray%), @char[0].anim[0].image[dirframe + (char[0].control[0].anim.frame * char[0].anim[0].arraysize)], trans =P it will crash without the 'at' Trancparency in PUT? - Z!re - 05-10-2005 *cough* DUH! ptr[num] = not a pointer.. When you do [] on a pointer, you get the value held there, the type will be set to that of the pointer, for example, ubyte. Try: Code: dim bptr as ubyte ptr Trancparency in PUT? - Anonymous - 05-10-2005 youre right =) but im pretty sure for scalar arrays you dont need '@', as that was the way qb did it... and i used fb put before i even knew what '@' and pointers were ;p |