Search found 68 matches

by ocean77
Sat Feb 13, 2021 7:59 pm
Forum: Newbie questions
Topic: Problem with PNG with alpha channel
Replies: 7
Views: 483

Re: Problem with PNG with alpha channel

Bugala wrote:
Sat Feb 13, 2021 10:38 am
This way in case you want different amounts of highlight, you can have them without having more than one image.
Great tip. Thanks! :)
by ocean77
Sat Feb 13, 2021 9:04 am
Forum: Newbie questions
Topic: Problem with PNG with alpha channel
Replies: 7
Views: 483

Re: Problem with PNG with alpha channel

emeck wrote:
Sat Feb 13, 2021 8:50 am
Hello

Try with

Code: Select all

@BRUSH 1, "terminal_hilight.png", {LoadAlpha = True}
Beautiful! Thank you so much! :)
by ocean77
Sat Feb 13, 2021 7:35 am
Forum: Newbie questions
Topic: Problem with PNG with alpha channel
Replies: 7
Views: 483

Re: Problem with PNG with alpha channel

Okay, thanks. Here's the image: https://drive.google.com/file/d/18twPcxZbssBapGq0Tun_Pv0pyKkZNdSx/view?usp=sharing This is the relevant code: Function p_Stage01() SetMusicVolume(2, VolMus) @BGPIC 2, "Stage01.jpg" @MUSIC 2, "Ambience_01.ogg" @BRUSH 1, "terminal_hilight.png" DisplayBGPic(2) PlayMusic(...
by ocean77
Sat Feb 13, 2021 6:18 am
Forum: Newbie questions
Topic: Problem with PNG with alpha channel
Replies: 7
Views: 483

Problem with PNG with alpha channel

Do I need to do anything special to be able to display a layer with a png brush containing transparent areas properly? The computer on the desk is supposed to light up when the mouse pointer is over it. Which it does, but the area around it is also affected. I've simply used a curves modifier in gim...
by ocean77
Fri Feb 12, 2021 7:27 pm
Forum: Newbie questions
Topic: Program Structure
Replies: 12
Views: 915

Re: Program Structure

Nice. I think I understand. Thank you again. :)
by ocean77
Thu Feb 11, 2021 9:33 pm
Forum: Newbie questions
Topic: Program Structure
Replies: 12
Views: 915

Re: Program Structure

Beautiful. It works. Thank you. So, it seems that; MakeButton(1, #SIMPLEBUTTON, 20, 250, 120, 120, {OnMouseOut = p_Stage01EventFunc, OnMouseOver = p_Stage01EventFunc, OnMouseDown = p_Stage01EventFunc}) Will make the InstallEventHandler instruction unneeded. They are essentially the same thing? Is th...
by ocean77
Tue Feb 09, 2021 10:04 pm
Forum: Newbie questions
Topic: Program Structure
Replies: 12
Views: 915

Re: Program Structure

Thank you, you are a gem. But the layer will not hide once the mouse leaves the hotspot area. @VERSION 8,0 @DISPLAY{WIDTH = 1280, HEIGHT = 720, MODE = "WINDOWED", TITLE = "The Beckoning - Playable Teaser", COLOR = #BLACK} ; *** VARIABLES *** ;------------------ Stage = 0 ; Set Start Location VolMus ...
by ocean77
Sun Feb 07, 2021 6:22 pm
Forum: Newbie questions
Topic: Program Structure
Replies: 12
Views: 915

Re: Program Structure

How would I go about hiding a brush after a certain event. I want to highlight a part of a background picture using a brush once the mouse is over that area and return to normal when the mouse exits. As far as I know I have to enable layers, but where? In that particular function, or in the main one...
by ocean77
Sat Feb 06, 2021 3:23 pm
Forum: Newbie questions
Topic: Program Structure
Replies: 12
Views: 915

Re: Program Structure

Thank you both for taking the time to give those in-depth explanations. I appreciate it.
Not sure I completely understand everything yet, but I'll get there eventually.

Bugala, You suggestions worked beautifully. Thanks.
by ocean77
Sat Feb 06, 2021 2:46 am
Forum: Newbie questions
Topic: Program Structure
Replies: 12
Views: 915

Re: Program Structure

Here's a piece of reference code with some questions in comments: @VERSION 8,0 @DISPLAY{WIDTH = 1280, HEIGHT = 720, MODE = "WINDOWED", TITLE = "The Beckoning Test", COLOR = #BLACK} ; *** VARIABLES *** ;------------------ Stage = 0 ;--------------------------------------------------------------------...