PC Won't listen

Non-platform specific questions.

PC Won't listen

Postby thunderios » Sat Feb 09, 2008 3:37 pm

I had to create a game for school, a quiz.
After you got five points you should go to the next stage
I have got everything working the Score actor, added score if u answer right
Now the camara should move to (2,2)
first I used:
"
if(Score.textNumber = 5) view.y = 2;
if(Score.textNumber = 5) view.x = 2;
"
There were no errors, but if I get my score to 5 it won't work, what should I do?
thunderios
 
Posts: 87
Joined: Thu Jan 31, 2008 1:18 pm
Score: 1 Give a positive score

Re: PC Won't listen

Postby regine » Sat Feb 09, 2008 3:47 pm

Try this:

if(Score.textNumber == 5)
{
view.y = 2;
view.x = 2;
}
My project: Packs Adventure
Now finished: Packs Adventure Demo:http://game-editor.com/forum/viewtopic.php?f=4&t=3491
Demo features:
Level 1-3
Leveleditor
Full edition features:
50 Levels
Big Leveleditor
Bonus features
Fighting mode
...and more
regine
 
Posts: 109
Joined: Mon Aug 15, 2005 7:19 pm
Location: Germany
Score: 1 Give a positive score

Re: PC Won't listen

Postby thunderios » Sat Feb 09, 2008 3:56 pm

Sorry, that does not work either.
Is there something wrong with my Score Actor then?
Or shouldn't I use x and y?
Maybe I can use an event instead of a code...
thunderios
 
Posts: 87
Joined: Thu Jan 31, 2008 1:18 pm
Score: 1 Give a positive score

Re: PC Won't listen

Postby regine » Sat Feb 09, 2008 4:01 pm

Make sure, that you did do that:

Actor Control -> Add -> Draw Actor -> Script Editor -> Enter the Script
My project: Packs Adventure
Now finished: Packs Adventure Demo:http://game-editor.com/forum/viewtopic.php?f=4&t=3491
Demo features:
Level 1-3
Leveleditor
Full edition features:
50 Levels
Big Leveleditor
Bonus features
Fighting mode
...and more
regine
 
Posts: 109
Joined: Mon Aug 15, 2005 7:19 pm
Location: Germany
Score: 1 Give a positive score

Re: PC Won't listen

Postby thunderios » Sat Feb 09, 2008 4:11 pm

It still doesn't work...
Do I have to do Actor Control -> Add -> Draw Actor -> Script Editor -> Enter the Script at
the score, the view, or something else?

If it still does not work, I think I can make a button 'to the next level' or something...

Anyway thanks for you time
thunderios
 
Posts: 87
Joined: Thu Jan 31, 2008 1:18 pm
Score: 1 Give a positive score

Re: PC Won't listen

Postby regine » Sat Feb 09, 2008 4:15 pm

Here is a demo:
Attachments
quiz.zip
(8.1 KiB) Downloaded 79 times
My project: Packs Adventure
Now finished: Packs Adventure Demo:http://game-editor.com/forum/viewtopic.php?f=4&t=3491
Demo features:
Level 1-3
Leveleditor
Full edition features:
50 Levels
Big Leveleditor
Bonus features
Fighting mode
...and more
regine
 
Posts: 109
Joined: Mon Aug 15, 2005 7:19 pm
Location: Germany
Score: 1 Give a positive score

Re: PC Won't listen

Postby regine » Sat Feb 09, 2008 5:00 pm

Corrected edition:
Attachments
Quiz2.zip
(420.45 KiB) Downloaded 84 times
My project: Packs Adventure
Now finished: Packs Adventure Demo:http://game-editor.com/forum/viewtopic.php?f=4&t=3491
Demo features:
Level 1-3
Leveleditor
Full edition features:
50 Levels
Big Leveleditor
Bonus features
Fighting mode
...and more
regine
 
Posts: 109
Joined: Mon Aug 15, 2005 7:19 pm
Location: Germany
Score: 1 Give a positive score

Re: PC Won't listen

Postby thunderios » Sat Feb 09, 2008 6:16 pm

regine helped me well, topic can be closed
thunderios
 
Posts: 87
Joined: Thu Jan 31, 2008 1:18 pm
Score: 1 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron