Community
SCI Programming => SCI Syntax Help => Topic started by: Cloudee1 on November 27, 2010, 11:16:34 PM
-
Ok here's a good one. let's say I've got some dynamite and a fuse. now this is a long fuse that curves around a room. now shooting the black powder ignites the fuse an it starts burning. now, i want the fire to move the fuse slowly. I've got a changestate that I'm using to delay the movement by a few cycles. now, how can i check if pointX, pointY is on a certain control color before the view is actually on it. so like: if x,y on control purple return true, else return false. if true then view posn at x y. basic pathfinding i guess.
-
Duh, so just like the syntax for checking if a click was on the color except replace pEvent x and y with my hypothetical x and y. So technically the fire does indeed move along the fuse. The script is bulky, and ugly though. I hard coded each direction check, but it works... round 1: cloud.