Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [Request / Listing] PNG-transparency?  (Read 1279 times)

0 Members and 1 Guest are viewing this topic.

Fox

Turnbeutelvergesser since 1988.
[Request / Listing] PNG-transparency?
« on: July 10, 2006, 09:34:31 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 4062
I want to have a transparency as PNG do, you know with different alpha-stages. Look here:



How's that possible in GM5.3a?
« Last Edit: March 18, 2012, 10:22:09 am by Niek »
Logged
  • Me on deviantART
Re: PNG-transparency?
« Reply #1 on: July 10, 2006, 09:55:30 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
TRM made an example... Try looking for it :)
Logged
the a o d c

Fox

Turnbeutelvergesser since 1988.
Re: PNG-transparency?
« Reply #2 on: July 10, 2006, 11:48:55 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 4062
That was my idea too, but I'm sure he didn't post it here, and ZFGC.org is down... I just remembered though that this forum is up, maybe he posted there.
Edit: Nevermind, I found it on his forums. *locked*
« Last Edit: July 10, 2006, 12:02:48 pm by Fox »
Logged
  • Me on deviantART

Fox

Turnbeutelvergesser since 1988.
Re: PNG-transparency?
« Reply #3 on: July 10, 2006, 12:04:48 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 4062
Hm, it's GM, but if it helps you, here's the link:
http://z13.invisionfree.com/Plains_of_Chaos/index.php?showtopic=23
And if you need help with PS, feel free to ask, I'll leave the topic open then... (Good job, in before the lock, Tabbeth. XDDDD )
Logged
  • Me on deviantART

Goodnight

Once and future Captain
Re: PNG-transparency?
« Reply #4 on: July 10, 2006, 04:21:55 pm »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
I think that example is for GM6.. if you want it for GM5.3, use the function draw_sprite_alpha(). It's just like draw_sprite_ext() except with 2 alpha arguments instead of 1: The alpha sprite, and the subimage thereof. :P
Logged
Re: PNG-transparency?
« Reply #5 on: July 11, 2006, 11:33:59 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 136
when I make shadows I use this code with a normal light type sprite (white to black).
Code: [Select]
draw_set_blend_mode(bm_subtract) //subtract kind of inverts the light
draw_sprite_ext(spr_light,-1,x,y,1,1,0,c_white,1)
draw_set_blend_mode(bm_normal) //set to normal blend mode
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.154 seconds with 50 queries.