Hi, I'm trying to do a simple heat conduction system using a 'Source' & some 'Conductor' sprites. These have a 'hot' instance variable & 2 animation frames for the cool & hot states:
<img src="http://i.imgur.com/U2Cps.jpg" border="0" />
As you can see, the part I'm stuck on is getting conductors to set the hot variable of other touching conductors.
Any ideas? Here's a capx in case anyone wants to fiddle:
Here's two possible solutions:
One using families... conduction1.capx (r110.2)
and the other using an extra hidden sprite to check for overlaps... conduction2.capx (r110.2)
Thanks! This is very helpful in learning Construct's subtleties.
Families are the elegant solution (I'm tempted to shell out the 80 quid just to play with them), & the 2nd hidden sprite example is very clever. Since it appears at the end of a chain, provided there's no branching, it could serve some extra visual effect.
Another question - here's the setup so far, using ramones first example:
<img src="http://i.imgur.com/98T5L.jpg" border="0" />
Now say that the conducting sprites have a 'resistance', & their frame number increases along the connected chain like so:
<img src="http://i.imgur.com/0LsZ1.jpg" border="0" />
Could a family picking method like the one used above do this?
I've tried making the (what I'm assuming to be a) triggered loop on event #4 into one that iterates the anim frame as it steps through each sprite. That doesn't work & I'm probably wrong about it looping - it might just be picking all connected family members at once...
This should do it:
<img src="http://dl.dropbox.com/u/5426011/examples16/mattb.png" border="0" />
Thanks for taking a look. This is similar to where I'm at at the moment- it works for single overlaps but breaks with multiple ones:
<img src="http://i.imgur.com/eUBLJ.jpg" border="0" />
I think I might just stick with the simple conduction...
If you make the collision masks beveled like an octagon then conduction will not occur diagonally.
nice idea & it works in more situations than before, but still not right...
<img src="http://i.imgur.com/qwpLw.jpg" border="0" />
How about this?
<img src="http://i.imgur.com/Vz7j2.jpg" border="0" />
Develop games in your browser. Powerful, performant & highly capable.
Haha nice <img src="smileys/smiley36.gif" border="0" align="middle" />