Variable Type Mismatch
Blitz3D Forums/Blitz3D Beginners Area/Variable Type Mismatch
| ||
check\exist is the holder for my createsphere(). Everything works fine until I add the line marked *** . At which point it throws me a variable type mismatch which doesn't make sense since the previous line actually moves it. Anyone have any ideas? I get it moving towards my 0,0,0 location just fine, but the split second I try to give it a rolling effect with Turnentity it errors. For check.deathball=Each deathball check\distance#=check\distance#-check\size#/4 PositionEntity check\exist,check\distance*Cos(check\degrees#),size,check\distance*Sin(check\degrees#) TurnEntity check\exist,0,size#/4,0 *** If CountCollisions(check\exist) Then If EntityCollided(check\exist,1) Then check\size#=check\size#-1 If check\size#>0 Then MoveEntity check\exist,0,-1,0 ScaleEntity check\exist,check\size#,check\size#,check\size# If check\size#=0 Then FreeEntity check\exist Delete check EndIf EndIf EndIf Next |
| ||
Nevermind.. found my error.. I forgot the type before the field. check\size#/4 .. love making stupid mistakes.. live and learn... lol |