new to game editor but good in c language

Game Editor comments and discussion.

new to game editor but good in c language

Postby zxcvbnm » Sun Aug 22, 2010 8:10 pm

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.
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: new to game editor but good in c language

Postby playahjmoney » Mon Aug 23, 2010 1:18 am

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.
Attachments
lvl1_1.ged
Try it out to see how I do mine!!!
(36.94 KiB) Downloaded 56 times
playahjmoney
 
Posts: 8
Joined: Sun Jul 04, 2010 8:47 pm
Score: 1 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron