ok, in function AddCoinToBox, change coin\value =5000 to coin\value = TreasureChestValue
in levels.bb add:
in function SetLevel add
to as the last read statement,
and set the level data to:
If leveltreasureset = False If (levelheight-levelscrollheight)<50 ; Treasure Chest coin.coin = New coin coin\value = TreasureChestValue ;<-- coin\image = 2 coin\y = box\y-32 coin\x = Rand(box\x,box\x+box\w-32) leveltreasureset = True Return End If End If
in levels.bb add:
Global TreasureChestValue
in function SetLevel add
Read TreasureChestValue
to as the last read statement,
and set the level data to:
.leveldata Data 1 ; the level number Data "One small jump for Bop..." ; the level name Data 1014 ; the level seed Data 1000 ; the level height Data 0.1 ; Initial scrollspeed Data 3 ; Monster random number (lower = more monsters) Data 1 ; Monster types .... Data 2 ; Coin random number (lower = more coins) Data 50 ; Diamond random number (lower = more diamonds) Data 400 ; Rock random number (lower = more rocks) Data 20 ; Number of platforms Data 2500 ; Treasure Chest Value Data 2 ; the level number Data "Bounce around" ; the level name Data 1234 ; the level seed Data 1500 ; the level height Data 0.2 ; Initial scrollspeed Data 0 ; Monster random number (lower = more monsters) Data 2 ; Monster types .... Data 0 ; Coin random number (lower = more coins) Data 20 ; Diamond random number (lower = more diamonds) Data 50 ; Rock random number (lower = more rocks) Data 10 ; Number of platforms Data 5000 ; Treasure Chest Value Data 3 ; the level number Data "The Party" ; the level name Data 2000 ; the level seed Data 1500 ; the level height Data 0.25 ; Initial scrollspeed Data 1 ; Monster random number (lower = more monsters) Data 2 ; Monster types .... Data 1 ; Coin random number (lower = more coins) Data 24 ; Diamond random number (lower = more diamonds) Data 600 ; Rock random number (lower = more rocks) Data 18 ; Number of platforms Data 7500 ; Treasure Chest Value Data 4 ; the level number Data "Just run" ; the level name Data 2347 ; the level seed Data 2500 ; the level height Data 0.7 ; Initial scrollspeed Data 5 ; Monster random number (lower = more monsters) Data 1 ; Monster types .... Data 5 ; Coin random number (lower = more coins) Data 0 ; Diamond random number (lower = more diamonds) Data 450 ; Rock random number (lower = more rocks) Data 6 ; Number of platforms Data 10000 ; Treasure Chest Value Data 0 ; indicates end of data