Problems Picking types

Blitz3D Forums/Blitz3D Programming/Problems Picking types

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

okay I have it working now but heres what was going on

function picks()

pick3=camerapick (camera1,400,300)
for e.enemy=each enemy
if pick3=e\enemy then
txx=1
else
txx=0
endif
next
end function


The above did NOT work




function picks()

pick3=camerapick (camera1,400,300)

for e.enemy=each enemy
if pick3=e\enemy then txx=1
next

end function

Nor did the code above

However this did



function picks()

pick3=camerapick (camera1,400,300)

for e.enemy=each enemy
if pick3=e\enemy then txx=1
if pick3=man then txx=2
if pick3=level then txx=3
next

end function


strange.