Assigning positions

BlitzMax Forums/BlitzMax Beginners Area/Assigning positions

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.

You're welcome :D

------ never mind this then -----
newplayerpos = 2
For i = 0 until crew.length
if i<>newplayerpos
if crew[i] & navigator
crew[newplayerpos] = crew[newplayerpos] | crew[i]
crew[i] = 0
endif
endif
next

Is that what you mean? or should the old navigator keep the other position he might hold?

Then it would be:
crew[newplayerpos] = crew[newplayerpos] | navigator
crew[i] = crew[i] - navigator