Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: pigglebear on December 31, 2015, 09:27:30 PM

Title: I cant get mist command to work on crpl
Post by: pigglebear on December 31, 2015, 09:27:30 PM
can someone help me this code does not work.

"CurrentCoords 90 1 1 CreateMist"

it just spawns mist on the left side of the map. I'm new to crpl so it may be a silly mistake.
Title: Re: I cant get mist command to work on crpl
Post by: Builder17 on January 01, 2016, 03:37:21 AM
CreateMist wants pixel number instead cell number to work . Use CellToPixel command.

CellToPixel(CurrentCoords) -1 90 1 1  CreateMist requists 4 colors you have only 3.

This first number before Red green and blue sets transparency of mist.

You are wanting red mist?
Title: Re: I cant get mist command to work on crpl
Post by: pigglebear on January 01, 2016, 09:42:05 AM
Thanks a lot.
Title: Re: I cant get mist command to work on crpl
Post by: kwinse on January 03, 2016, 08:40:32 PM
Quote from: Builder17 on January 01, 2016, 03:37:21 AM
CreateMist wants pixel number instead cell number to work . Use CellToPixel command.

CellToPixel(CurrentCoords)
Why not just use CurrentPixelCoords (http://knucklecracker.com/wiki/doku.php?id=crpl:docs:currentpixelcoords)?