Project Folders
Teacher Resources
Student Resources
How Do I?
Site Map
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: "MicroWorlds Forum" <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, tybeaurock@xxxxxxxxx
Subject: Re: how to create lives
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Tue, 10 Apr 2012 16:20:21 -0500

On Tue, 10 Apr 2012 15:10:04 -0500, <askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

from: Phil <tybeaurock@xxxxxxxxx>
date: Tue Apr 10 14:10:04 2012
platform: PC
version: MicroWorlds Ex

how do i create lives for a game that my partner and i are making for a school project....

A slider can tell you how many lives the character has.

You set it with:

setslider1 3

or if you change the name of the slider1 to "lives", then:

setlives 3

Then, when the character dies, you call this procedure:

to kill
if lives < 1 [stop]
setlives lives - 1
if lives < 1 [announce [game over]]

OpenWorld Learning

  • Previous by thread: MIA, Ask an Expert: how to......
  • Next by thread: MIA, Ask an Expert: Shuffle Turtles Randomly but in order

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.

    © copyright 2001 - 2008