thanks botbuilder, after I posted I realised it was fairly easy.I am keeping your other code saved so i can refer to when i am more advanced. hey dying is not much of a reward
for collecting 3 coins
Shouldn't that last line read
if coins=3 then PlaySound sndsuccess
I had a few probs loading a custom mesh for the coin, but did it like this. it was mainly syntax problems i was having
coin(1)=LoadMesh("models\diamond.b3d")
ScaleEntity coin(1), .1,.1,.1
PositionEntity coin(1),-10,-3,0
coin(2)=CopyEntity (coin(1))
PositionEntity coin(1),-10,-3,20
coin(3)=CopyEntity (coin(1))
PositionEntity coin(3),10,-3,30
The game could be as simple as you have to collect all the diamonds/coins within a set time or you die. not very exciting or advnced , but a good start for me
for collecting 3 coins
Shouldn't that last line read
if coins=3 then PlaySound sndsuccess
I had a few probs loading a custom mesh for the coin, but did it like this. it was mainly syntax problems i was having
coin(1)=LoadMesh("models\diamond.b3d")
ScaleEntity coin(1), .1,.1,.1
PositionEntity coin(1),-10,-3,0
coin(2)=CopyEntity (coin(1))
PositionEntity coin(1),-10,-3,20
coin(3)=CopyEntity (coin(1))
PositionEntity coin(3),10,-3,30
The game could be as simple as you have to collect all the diamonds/coins within a set time or you die. not very exciting or advnced , but a good start for me