Jump to content


Photo

Drawing a sprite completly white


  • Please log in to reply
5 replies to this topic

#1 Liorana

Liorana

    GMC Member

  • GMC Member
  • 340 posts

Posted 26 April 2012 - 02:05 PM

Anyone has an idea how I could draw a normal sprite completely white, WITHOUT doing any of these.
1.Adding more sprites
2.Using surface
3.Altering the sprite
  • 0

#2 Lemon Pie

Lemon Pie

    GMC Member

  • GMC Member
  • 194 posts

Posted 26 April 2012 - 02:15 PM

try
draw_sprite_ext(spr_Sprite, x, y, 1, 1, 0, make_color_rgb(255, 255, 255), 1)

  • 0

#3 Liorana

Liorana

    GMC Member

  • GMC Member
  • 340 posts

Posted 26 April 2012 - 02:29 PM

try

draw_sprite_ext(spr_Sprite, x, y, 1, 1, 0, make_color_rgb(255, 255, 255), 1)

did you actually ever used game maker before?

Edited by Liorana, 26 April 2012 - 02:34 PM.

  • 0

#4 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16794 posts
  • Version:GM:Studio

Posted 26 April 2012 - 02:36 PM

Use the d3d fog functions like this :

d3d_set_fog(true,c_white,0,0);
draw_sprite(sprite_index,image_index,x,y);
d3d_set_fog(false,c_black,0,0);

Hope that helps!
  • 0

#5 Liorana

Liorana

    GMC Member

  • GMC Member
  • 340 posts

Posted 26 April 2012 - 02:43 PM

Use the d3d fog functions like this :

d3d_set_fog(true,c_white,0,0);
draw_sprite(sprite_index,image_index,x,y);
d3d_set_fog(false,c_black,0,0);

Hope that helps!

ah... didnt know about that. Is it safe, I mean is it a quick function?
I want to use that whenever a monster get hit.
  • 0

#6 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16794 posts
  • Version:GM:Studio

Posted 26 April 2012 - 03:47 PM

It is very quick and quite allright to use (as long as you have standard as it's not a Lite friendly function).
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users