Hotspot Solid Color

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Hotspot Solid Color

Postby cpkspikyhair » Fri Jan 16, 2009 4:41 pm

Is is possible to adjust the solid color of a hotspot with the RGB color model? Something like this:

Hotspot(1).Picture = R(...)G(...)B(...)
PSPPC GameMaker!! Where you can find PSP and PC games up for download!
User avatar
cpkspikyhair
Games Page Administrator
 
Posts: 425
Joined: Thu Jun 28, 2007 1:49 pm
Location: On Mars (Yes There Is Water :) )

Postby Lyberodoggy » Fri Jan 16, 2009 5:26 pm

I think you could use a pictureboxobject instead.

Also, the RGB function is like this: RGB(r,g,b)
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby mercedes » Fri Jan 16, 2009 8:14 pm

Hey Spike..Mind if I call u that for short..:D..

What is it that u are trying to do exactly..Do u have a picture in the hotspot at all..?..Is it u have something like a black square in there..and u want it to go from black to gray or something..?

By the way it would be ..if this can be done..RGB=(255,255,255) would be the code..At least thats what it is for textboxes..You could do that actually..Adjust a textbox to the size u want..and put whatever colour you want in it..That you can adjust..with RGB..

If its the color u want to change when the user clicks on it though..that would be different..


Just bouncing ideas..:)

Peace
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby cpkspikyhair » Fri Jan 16, 2009 8:57 pm

I was going to have a grid of hotspots and you select a color on the right side of the program and then you click on a hotspot and it changes the color of the hotspot. I don't want to use pictures because that would need exactly 16,581,375 pictures. That would take a while to load lol :lol: .

Edit: CLARIFICATION
Last edited by cpkspikyhair on Fri Jan 16, 2009 9:32 pm, edited 1 time in total.
PSPPC GameMaker!! Where you can find PSP and PC games up for download!
User avatar
cpkspikyhair
Games Page Administrator
 
Posts: 425
Joined: Thu Jun 28, 2007 1:49 pm
Location: On Mars (Yes There Is Water :) )

Postby mercedes » Fri Jan 16, 2009 9:19 pm

Oh ok...Well why not use actual colored blocks..in the hotspots..

Another thing..

Do u want any hotspot in the grid to go green if they click the one on the side..say the color "green" ..Or a "specific" one only to go green..?

I'm going to assume you want any one of them to go green or red whichever..if they click the color on the side.
So here's what i would do..I would make each colored block in paint or whatever..and have it the exact size u want it to be for the hotspot so if the hotspot is 48*48 make the blocks that color..

Then I would make each color a variable..
In the hotspots on the side..make them the variable of 1 for their perspective color..

In the grid I would have..in each hotspot
If green = 1 then
action.loadapicture hotspot(1), "greenblock.jpg"

and then else if's red=1...etc..
Is this what u mean..?
Last edited by mercedes on Fri Jan 16, 2009 9:36 pm, edited 1 time in total.
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby cpkspikyhair » Fri Jan 16, 2009 9:29 pm

That's what I meant, sorry for the confusion. I don't want to use pictures because it would call for that many.

As for the second question, I am trying to create a so-called "sprite creator". They would choose the color on the right and then click on a hotspot in the grid and that wouldmake the hotspot they clicked turn the color they chose.
PSPPC GameMaker!! Where you can find PSP and PC games up for download!
User avatar
cpkspikyhair
Games Page Administrator
 
Posts: 425
Joined: Thu Jun 28, 2007 1:49 pm
Location: On Mars (Yes There Is Water :) )

Postby mercedes » Fri Jan 16, 2009 10:12 pm

Oh ok...I see now what u mean...Is the grid blank to begin with btw..? transparent..Or is there colors in the grid..? I gather u are trying to make something of a grid like what u would see in paint..where the colors are at the bottom and u click a place in your picture..and it turns that color..Meaning u would need alot of colors..

I think u would need to create a plugin for something like that..
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby cpkspikyhair » Sat Jan 17, 2009 1:39 am

That's exactly what I want. A grid like in paint.
PSPPC GameMaker!! Where you can find PSP and PC games up for download!
User avatar
cpkspikyhair
Games Page Administrator
 
Posts: 425
Joined: Thu Jun 28, 2007 1:49 pm
Location: On Mars (Yes There Is Water :) )


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron