Author Topic: So anyone know how to check hypothetical control color  (Read 2371 times)

0 Members and 1 Guest are viewing this topic.

Offline Cloudee1

So anyone know how to check hypothetical control color
« 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.


Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline Cloudee1

Re: So anyone know how to check hypothetical control color
« Reply #1 on: November 28, 2010, 01:23:19 AM »
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.
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.03 seconds with 23 queries.