Making Lives +1 each level (Blitz Basic)

Basic Invaders game, need to raise lives by 1 each level

Page 1 of 1

1 Replies - 1576 Views - Last Post: 17 July 2009 - 08:55 AM Rate Topic: -----

#1 WazMeister  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 16-July 09

Making Lives +1 each level (Blitz Basic)

Post icon  Posted 16 July 2009 - 11:03 PM

Hi,

Found BB in my loft which I bought in 2001, never had the will or time to learn back then.
I dusted it off and followed the manual and some youtube videos to make a basic Space Invaders game.

I basicly have it starting with 3 Lives
Lives = 3

I also have the game checking that if the numberofaliens = 0
then reset it and text for level will change to 2
So your technially on Level 2

I've tried a few things to make lives +1 each level increment.

Lives = lives + level
This makes you start with 4 lives (3+ the level 1) and after level 1 it counts mega fast up and crashes game...

I tried a type
created a level type and a new refrence to it with the cmd for each level
This also did not work

Thirdly I tried
for L = 1 to 10
lives = level + L



but everything fails.

Any suggestions pleasE?

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: Making Lives +1 each level (Blitz Basic)

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9094
  • View blog
  • Posts: 34,148
  • Joined: 12-June 08

Re: Making Lives +1 each level (Blitz Basic)

Posted 17 July 2009 - 08:55 AM

You want to add a life each time the user completes a level?

Put this at the 'level completed' area of your code.

Lives = lives + 1


This post has been edited by modi123_1: 17 July 2009 - 08:56 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1