The Daily Click ::. Forums ::. Klik Coding Help ::. Can't figure out Effect parameter "simple mask" in the event editor
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
7th March, 2011 at 06:03:57 -

I'm trying to change "simple mask" to different colors based on an alterable string. For example if string is "p1" change simple mask to green or if string is "p2" change simple mask to pink. Furthermore I tried that and its not giving me the right colors based on the value I enter. This is exactly what I do

Alterable string ="p1" set effect "Simple mask" set effect parameter "fc" 0,255,00

Should be green right? It's not it's straight black. Is there a different layout?


Alterable string ="p2" set effect "Simple mask" set effect parameter "fc" 255,0,255

Should be magenta but it is not it's Red.

Is there more information it needs? I even tried setting the visibility "ffade" to 1 but that didn't help matters.

I thought it might be because I already had simple mask set up to the object so I took that off and still the same problem.

Anyone know how to work the simple mask parameters??

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


nim



Registered
  17/05/2002
Points
  7233
7th March, 2011 at 08:42:44 -

Just a suggestion (I haven't tried this) but try using RGB(0,255,0) instead of just putting in 0,255,0. Working with colours in MMF has stumped me a couple of times and both times it was because I forgot to put the colour inside the RGB() function.

 
//

JetpackLover



Registered
  01/03/2007
Points
  212
7th March, 2011 at 14:34:00 -

Awww man no dice. I thought that would work too. I wish I could find an example just so I can see how it's done.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
7th March, 2011 at 16:48:58 -

It's exactly what Nim said.

eg. For a pink mask, you'd say:
Set effect parameter "fC" to RGB(255,0,255)

 
n/a

JetpackLover



Registered
  01/03/2007
Points
  212
8th March, 2011 at 03:11:57 -

I tried that and it sytax errored on me.
Image

Edited by JetpackLover

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
8th March, 2011 at 04:03:13 -

I don't have a clue and I've never tried, but couldn't you use GetRGB()?

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Jacob!



Registered
  17/06/2011
Points
  153
12th March, 2011 at 07:53:07 -

GetRGB() is the correct syntax. The way it works is by multiplicative property

r*65536
g*256
b

And adds them together.

 
Have you even been far as decided to use even go want to do look more like?
   

Post Reply



 



Advertisement

Worth A Click