Jump to content

How do I do points for questions?


Guest

Recommended Posts

hello again, i almost finished mine first cartridge!!

 

The last thing i want to do is work with points

 

i have 5 questions (multiple choice) in 5 zones, in the start there is only 1 zone active with 1 question, after answering the 2nd zone come active (if answer is bad, you have to walk to a punishment zone) and it goes on till the end

 

Now my idea is to give the player points after finishing each question, so when i arrive in the last zone and the score is not 5/5 than the player don't get the coordinates and code, so for every point he comes short, he has the walk some punishment zones.... after completing the punishment zones, he will get the code and coordinates

 

so how do I do that...

Link to comment

As a moderator: I split this out of the Urwigo thread.

 

As a community member: To do this, you'll set up a variable called "score". You'll also need variables per question if you intend to ask the question a second time and don't want to give points (or a reduced number of points) for subsequent question retries. Before the question is asked, increment the variable assigned to that question. Now you know how many times the question has been asked. When the player finally answers correctly, test that variable's value for whatever conditions you want, such as not giving the player any points if the number of times that question has been asked is greater than one. Whatever points you want to give to the player, add them to the "score" variable. When the player enters the final zone, test for the "score" variable's value and do whatever you need to fit your game.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...