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: Transperancy/Blending in Goodnights Engine  (Read 811 times)

0 Members and 1 Guest are viewing this topic.

Dejay

Transperancy/Blending in Goodnights Engine
« on: January 14, 2007, 01:35:37 pm »
I've been using Goodnights movement engine in my game, and I've noticed that objLink's Transperancy or Blending won't change, I beleive this may have something to do with sprite_index being drawn in the Draw event. I tried changing draw_sprite of objLink to draw_sprite_ext and changing the alpha part to image_alpha, but even if that worked, theres still the matter of Blending.
Has anyone else encountered this problem?
If so, did you solve it?
~Dejay
Logged

mit

Re: Transperancy/Blending in Goodnights Engine
« Reply #1 on: January 14, 2007, 02:05:00 pm »
  • QBASIC programmer since age 4. Take that, world.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 1079
Yes, using the draw event needs to draw with draw_sprite_ext if you want it to work. About the blending, it should work if you set all the parameters right.

draw_sprite_ext(x,y,sprite_index,image_index,image_xscale,image_yscale,image_angle,image_blend,image_alpha)

(that may be the wrong order, I did that from memory)


Or, if you want the simple way out, don't use the draw event for link at all. Use another object to draw the shadow underneath him.
Logged
Programmer / Spriter / Level designer / Game Director / Web Designer / Music Sequencer for
Random Highscore table:

Play the Kousou Arcade today!
  • Kousou Games

Dejay

Re: Transperancy/Blending in Goodnights Engine
« Reply #2 on: January 14, 2007, 04:07:39 pm »
Thanks, it's working now, I had tried to just draw it with another object, but, I forgot that even having a draw event in objLink requires that I draw the sprite_index.
<3 ~ Dejay
Logged

Goodnight

Once and future Captain
Re: Transperancy/Blending in Goodnights Engine
« Reply #3 on: January 15, 2007, 05:54:08 am »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
Thanks mit.

If you take out the Draw event then the alpha and blending will automatically kick in. I only used that event to have the shadow drawn under Link.
Logged
Pages: [1]   Go Up

 


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



Page created in 0.692 seconds with 46 queries.

anything