Mask Image for TShowImg?
Is this possible? I'm trying to make a lantern that everything is completely black except the areas around players. I first tried with an Gui and got it to show exactly how I want it but wasn't able to finish since guis dont have attachtoowner and some other stuff I would like to use.
Would anyone know how to mask an image using images and not Guis? this is how it looked like using Guis but cant figure out to make it using TShowImg instead. http://i.imgur.com/5af3GRj.png For the Gui I just used a small black square image and stretched it then with another image thats just a white circle i placed on top. |
I know it's possible. Era uses a an image overlay for maze events and what not. I wish I had examples for ya, but I'm a bit rusty.
|
Good to know it might be possible, thanks!
If I figure it out I'll post for other. |
I think dusty made something similar to that but using polygons
EDIT: go check this out Quote:
|
dusty made an improved thing using 1 zoomed polygon only, but i cant find the thread :/
|
This works but not really want I want. My idea was to have a lantern that slowly dims as its used and the light will slowly decrease in size.
Problem with this is I cant resize the light and it delays when player walks. PHP Code:
Quote:
|
Would anyone happen to know how to resize the mask image?
I'm making something else that's going to be re sizable but cant really get it to work because I can't figure a way to resize the mask image :( |
Put it in a GuiStretchCtrl :)
|
Quote:
|
Quote:
|
All times are GMT +2. The time now is 08:20 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.