Page 1 of 1

new to game editor but good in c language

PostPosted: Sun Aug 22, 2010 8:10 pm
by zxcvbnm
Hi fellas I am new to game editor but I do know a good amount of C langauge. There are some problems I have with coding and hope someone can help.

1) How do you make a high score for your game?
2) How do you make multiple levels but in one file?

I have figured out a good deal but for some reason cant figure these out. Thank you kind sir if you can help me out.

Re: new to game editor but good in c language

PostPosted: Mon Aug 23, 2010 1:18 am
by playahjmoney
Hey! Welcome to the community!

I can only answer the first question since I make a file for each level using the "LoadGame" Funtion. I recommend it because it apparently will make your game run faster than having one huge file.

As for your first question
1) Make actor "score" (in my case it is coin_score for my game)
2) Click on the "Text" button
3) Type "00000" (or however many you like)
4) Choose a True Type font (lots of 'em)
5) Notice the "soft" option. (I liked it)
6) Click OK

7) Create any actor (for me it was coin)
8) Click the "Add" button next to the word Events
9) Collision>Script Editor
10) Type this in (or paste)
Code: Select all
coin_score.textNumber = coin_score.textNumber + 1;


11) in place of coin_score you would put the actor that is your score (the "00000")
12) When all is good press "OK"

Now whenever you collide with a coin, the score goes up by 1.