Music in the game

40 views
Skip to first unread message

vlad...@gmail.com

unread,
Feb 2, 2014, 12:18:56 PM2/2/14
to mitappinv...@googlegroups.com
Is it possible to continiue playing music when the screens are changed?
I have quiz game. Every question - different screen. Can I do that when you are going to the next question music will keep playing (not from the start!)?

appguytry2

unread,
Feb 2, 2014, 12:52:36 PM2/2/14
to mitappinv...@googlegroups.com, vlad...@gmail.com
You could use one screen and just change the question each time.  Then the music would play without interruption.

If you want to post your project I will show you how to use a list and one screen as oppose to multiple screens.

Taifun

unread,
Feb 2, 2014, 12:57:16 PM2/2/14
to mitappinv...@googlegroups.com, vlad...@gmail.com
this is an example of a quiz, which uses 1 screen only http://puravidaapps.com/quiz.php
Taifun

phantomfoot

unread,
Feb 2, 2014, 1:41:21 PM2/2/14
to mitappinv...@googlegroups.com
As long as the screen with the player remains open, it will keep playing the the music.

But I agree with the others, it is not good design to have a separate question on each screen.

vlad...@gmail.com

unread,
Feb 3, 2014, 11:30:01 AM2/3/14
to mitappinv...@googlegroups.com, vlad...@gmail.com
Taifun,
I used your tutorial, but then realized that it is that kind of quiz where you get all answers in the end. Is there any tutorials or tips how to create a quiz where if you answered wrong you'll get a message like "False" and you'll have multiple lives. That what I made with several screens, but it doesn't reaaly make sense, because you have 2 lives on each question and not 5 lives for the whole game. And also no music.

Taifun

unread,
Feb 3, 2014, 11:57:40 AM2/3/14
to mitappinv...@googlegroups.com, vlad...@gmail.com
you can easily adjust my example to your needs
Taifun

Message has been deleted

richard

unread,
Feb 3, 2014, 12:02:57 PM2/3/14
to mitappinv...@googlegroups.com, vlad...@gmail.com


On Monday, 3 February 2014 11:30:01 UTC-5, vlad...@gmail.com wrote:
Taifun,
I used your tutorial, but then realized that it is that kind of quiz where you get all answers in the end. Is there any tutorials or tips how to create a quiz where if you answered wrong you'll get a message like "False" and you'll have multiple lives. That what I made with several screens, but it doesn't reaaly make sense, because you have 2 lives on each question and not 5 lives for the whole game. And also no music.

make a variable called TotalLives.   and carry that Variable thru your entire quiz.   And have an ifelse loop that works something like this: 
If Answer=True then:  next question pops up
Else:  TotalLives = TotalLives-1
          Call CheckLives Procedure
    
Check Lives Procedure:
if totallives >= 1 then:
    next question
Else
    Game over


does that make any sense? 

vlad...@gmail.com

unread,
Feb 3, 2014, 12:09:29 PM2/3/14
to mitappinv...@googlegroups.com, vlad...@gmail.com
воскресенье, 2 февраля 2014 г., 18:18:56 UTC+1 пользователь vlad...@gmail.com написал:
> Is it possible to continiue playing music when the screens are changed?
> I have quiz game. Every question - different screen. Can I do that when you are going to the next question music will keep playing (not from the start!)?

richard,
yeah thanks
Reply all
Reply to author
Forward
0 new messages