Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411490 Posts in 69377 Topics- by 58433 Members - Latest Member: graysonsolis

April 29, 2024, 01:18:04 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Using alpha channel in Game Maker?
Pages: [1]
Print
Author Topic: Using alpha channel in Game Maker?  (Read 1615 times)
Ninomojo
Level 2
**



View Profile WWW
« on: March 07, 2010, 08:23:26 AM »

Hi there!

I'm wondering if there is a way to read and display the alpha channel of a 32 bit TGA in Game Maker. The effect I want to achieve with this is quality anti-aliasing by using transparency on the edges (draw the picture anti-aliased in Photoshop against a transparent background, and export it as 32 bit TGA).

Does anyone know if this is possible, or if there's something similar that I can do? I used to do this in Blitz and it works pretty well at making superb anti-aliasing on hand drawn million colors stuff.

Thanks

Romain
Logged

pgil
Guest
« Reply #1 on: March 07, 2010, 08:30:42 AM »

Game Maker can load .png files with an alpha channel (I don't know if it supports tga files, but it shouldn't be hard to convert them). In GM 8 you should just be able to add them as a regular sprite or background. In earlier versions, you have to load them at runtime through scripts. Look up sprite_add_alpha in the manual...
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic