• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

How can I set the transparency of a view?

J

JopRillos2001

Guest
Im making a map with a minimap, but the minimap is a view of the room, but smaller. The player can get behind the view, and this is all good, but now I cant see the player.

Can I make the view transparent so I can see the map, and the player?

If this isnt possible, what should I do to make the minimap work?
 
J

JopRillos2001

Guest
And how do I set the transparency using view_surface_id?
 

kupo15

Member
Why don't you manually code the minimap as a GUI draw in the normal draw event and position it before the player gets drawn so that way the player gets drawn on top?
xx = camera_x+Gui_coor
yy = camera_y+Gui_coor

Or something to that effect if you want to use a different reference
 
J

JopRillos2001

Guest
Ive been stuck on this for days, and this still doesnt give me enough to get it right. Could you give a little more info?
 

kupo15

Member
what part are you stuck on? Also, why are you using another view for the minimap? If its already been created on a surface, why not just draw the surface normally without assigning it to a view_surface? I don't understand why using multiple views is necessary in general tbh
 
Top