Im new and I suck

Get help using Construct 2

Post » Wed Jun 20, 2012 11:13 am

Hey , I love this construct 2 forums they have helped me a lot but I am trying to do some stuff in my game that I cant get around to.

My game is a mix between battleship, air hockey and pinball. I have created most of the art but I am having trouble with a LOT of things since I am not a programmer.

I will ask for a lot of help but I would like to start with:

I need to add a score and when the ball hits a certain area in the game then the score will go 01 , 02 , 03... every time the ball hits that area.

I have tried to find a tutorial or project like that but have not been able to.

Hope someone can help me.

Thanks !   
B
2
Posts: 4
Reputation: 283

Post » Wed Jun 20, 2012 11:20 am

Just create a instance variable, maybe named Score. Then create an event

- > Collision of BALL with certain area - Add 1 to Score

You can even create a Family for the certain area, and each of them would have different scoring points that will add to score when collided.

Hope that make sense
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Wed Jun 20, 2012 11:28 am

ok i get that but to make the score i should make a text box?
B
2
Posts: 4
Reputation: 283

Post » Wed Jun 20, 2012 11:33 am

Well for simple prototype I usually just Text object and set it to

- > every tick   - set Text to "Score : " & Score

I guess the proper would be later to create a sprite animation, set to static, and just changes frame depending on the score.
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Wed Jun 20, 2012 11:36 am

thanks for all the help i will try it now.. do you know if there is a tutorial to do a sprite score?
B
2
Posts: 4
Reputation: 283

Post » Wed Jun 20, 2012 11:55 am

Sadly none that I know of in Scirra, though I might have missed some. Try searching the forum, or you can Google for it, since Construct 2 is html5, some of the technique could be applied.

Best of luck!
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Wed Jun 20, 2012 1:16 pm

Have you tried the Beginner's Guide tutorial and How to make a Platform game tutorial? They may not be the same kind of game as you're making, but going through both will teach you a great deal about Construct 2 and help you solve problems in other games.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Wed Jun 20, 2012 4:50 pm

thanks for the help, I did read the beginners guide but I am still pretty bad connecting stuff.

i did a global variable called score then I did:

ball > on collision with > goal area right > system add 1 to score

and I am stuck again because I can figure out what to do next. should I add an action on the goal area right?

sorry for the newbieness
B
2
Posts: 4
Reputation: 283

Post » Wed Jun 20, 2012 4:54 pm

now create a textobject and every tick > set text to score

this textobject will then display your score
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Wed Jun 20, 2012 8:16 pm

@maguilakindafunk
My Building a platform game - a beginner's guide shows you how to set up and manage a scoring display.

Have fun! (And never apologise for being a newbie - we were all newbies once :)Velojet2012-06-20 20:18:39
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Next

Return to How do I....?

Who is online

Users browsing this forum: Pandadoor, Zebbi and 15 guests