Wheele 0-7 aren't turning! I've changed revolve to 0.5.
Please Help! All wheeles were turning before I added the axels.
Oh, and is there anyway that I can Rotate() things the opposite way?
/Edward
------------------
"I am the signature virus! Copy me into your signature so that I can take over the world! Moohahahee!"
Happy?
Code:
# 32 wheeler. # # By Edward symbols message startup message pulse message touched thing wheele0 mask=0x606 thing wheele1 mask=0x606 thing wheele2 mask=0x606 thing wheele3 mask=0x606 thing wheele4 mask=0x606 thing wheele5 mask=0x606 thing wheele6 mask=0x606 thing wheele7 mask=0x606 thing wheele8 mask=0x606 thing wheele9 mask=0x606 thing wheele10 mask=0x606 thing wheele11 mask=0x606 thing wheele12 mask=0x606 thing wheele13 mask=0x606 thing wheele14 mask=0x606 thing wheele15 mask=0x606 thing wheele16 mask=0x606 thing wheele17 mask=0x606 thing wheele18 mask=0x606 thing wheele19 mask=0x606 thing wheele20 mask=0x606 thing wheele21 mask=0x606 thing wheele22 mask=0x606 thing wheele23 mask=0x606 thing wheele24 mask=0x606 thing wheele25 mask=0x606 thing wheele26 mask=0x606 thing wheele27 mask=0x606 thing wheele28 mask=0x606 thing wheele29 mask=0x606 thing wheele30 mask=0x606 thing wheele31 mask=0x606 thing axel0 thing axel1 thing axel2 thing axel3 thing axel4 thing axel5 thing axel6 thing axel7 vector axis flex revolv=1.0 sound splat sound crunch int i local int l=1 local end # code startup: for(i=0; i<32; i=i+1) { StopThing(wheele0); Rotate(wheele0,axis); } for(i=0; i<8; i=i+1) { StopThing(wheele0); Rotate(axel0,axis); } SetPulse(revolv); return; pulse: for(i=0; i<32; i=i+1) { StopThing(wheele0); Rotate(wheele0,axis); } for(i=0; i<8; i=i+1) { StopThing(wheele0); Rotate(axel0,axis); } return; touched: for(i=0; i<32; i=i+1) { if(GetSenderRef()==wheele0) { StopThing(wheele0); l=PlaySoundThing(splat,GetSourceRef(),1,-1,10,0x80); ChangeSoundPitch(l,.5,0.01); DamageThing(GetSourceRef(),1000,0x41,GetSourceRef()); l=PlaySoundThing(crunch,GetSourceRef(),1,-1,10,0x80); ChangeSoundPitch(l,.5,0.01); Rotate(wheele0,axis); } } return; end
Please Help! All wheeles were turning before I added the axels.
Oh, and is there anyway that I can Rotate() things the opposite way?
/Edward
------------------
"I am the signature virus! Copy me into your signature so that I can take over the world! Moohahahee!"
Happy?