Hi guys!
I got around to testing my game on 2 computers at a friends house, and for some reason this command does not work!
It happens when the joiner presses the "cancel" button. When that happens, it uses the command "free net player" to remove the player from the game, but the command "net player destroyed()" on the host computer doesn't return anything... And after that, if the joiner that left wants to join again, it says it couldn't join the specified net game...
quick code:
flag=0
perform checklist for net connections
for n=1 to checklist quantity()
print checklist string$(n)
if lower$(left$(checklist string$(n),15))="internet tcp/ip"
selection=n
flag=1
exit
endif
next n
if flag=0
print "Can't find TCP/IP connection"
end
endif
set net connection selection
perform checklist for net sessions
if checklist quantity()>0
iam$="join"
join net game 1,"idiot"
else
iam$="host"
create net game "bob","bob",2,1
endif
rem now here is the bug
if iam$="join"
free net game
else
repeat
if net player destroyed() then text 0,0,"Player left the game"
sync
until returnkey()=1
endif
rem joiner tries to join game again...
join net game 1,"idiot"
rem fail
wait key
end
So, whats going on here?
TheComet

Make the paths of your enemies easier with WaypointPro!