Help creating png image w/invisible background
by Dan Clark · in Torque Game Builder · 02/24/2008 (2:04 pm) · 3 replies
Howdy,
Was wondering if anyone could help me regarding creating a .png image with an invisible background. I am new to this and have some art I want to use but unfortunately lack the knowledge to hide the background. Thanks in advance.
Was wondering if anyone could help me regarding creating a .png image with an invisible background. I am new to this and have some art I want to use but unfortunately lack the knowledge to hide the background. Thanks in advance.
#2
Alternatively:
Where %number is any value between 0 and 360. Actually, I think you can put any number in for rotation, but keeping it between 0 and 360 simplifies it.
[edit]:
Usually you can find simple things like that by searching the TGB Reference Document; I recommend downloading version 1.1.3 just for the docs. The current ones take forever to open/close tabs. I have a 2.66 Core 2 Duo and it still takes 60 seconds to open one tab.
02/24/2008 (5:44 pm)
Sure thing. Set rotation using something like this:%object.setRotation(%number);
Alternatively:
%object.rotation = %number;
Where %number is any value between 0 and 360. Actually, I think you can put any number in for rotation, but keeping it between 0 and 360 simplifies it.
[edit]:
Usually you can find simple things like that by searching the TGB Reference Document; I recommend downloading version 1.1.3 just for the docs. The current ones take forever to open/close tabs. I have a 2.66 Core 2 Duo and it still takes 60 seconds to open one tab.
#3
I downloaded the 1.1.3 version and have been reading or referencing the docs that came with it. They are very helpful or at least intriguing until I fully understand the language.
02/25/2008 (10:50 pm)
Thanks Kevin,I downloaded the 1.1.3 version and have been reading or referencing the docs that came with it. They are very helpful or at least intriguing until I fully understand the language.
Torque Owner Dan Clark
I downloaded a free graphics tool that has a transparency feature. So my art is looking better. Now I have another question.
From using the fish tutorial I can see you can flip an animation on it's axis either X or Y to change directions. Is there a way to rotate the animation in a similar way. For example if I wanted the sprite to animate down or up could I rotate it in script 90 degrees and if so can someone give me an example.
Thanks