Some Questions

Get help using Construct 2

Post » Thu Oct 03, 2013 9:21 pm

Hello Community,

I have some questions:

1. I Want to make a Ammo system, that means that my Charakter can not shoot unlimited Bullets. How is this possible to create it ? I think it is something with Global Variables but i dont know what should i do with them.


2. Is it possible to make a Infinitiy length of Screen ? or High ?

When yes, how?

Please try to explain it very easy and in beginner friendly steps.


Thank you very much
B
11
S
2
Posts: 93
Reputation: 917

Post » Fri Oct 04, 2013 2:42 pm

Help me please.

#Bring it up
B
11
S
2
Posts: 93
Reputation: 917

Post » Fri Oct 04, 2013 5:26 pm

For ammo you can simply make a variable to track it and then subtract from it when the character fires. If the character gains ammo you just add to it.

Some of the templates use infinite screen such as the endless runner template. Check it out.
B
26
S
8
G
2
Posts: 33
Reputation: 3,645

Post » Fri Oct 04, 2013 6:08 pm

Thanks!

How can i show the variable in a Text ?
That means, when my Variable is 5 that my text is 5 too.
Or when i shoot one bullet that the Text change to 4.

Please in easy steps.
B
11
S
2
Posts: 93
Reputation: 917

Post » Fri Oct 04, 2013 6:18 pm

@PlasmaGames2013, I suggest you go and read this tutorial.

https://www.scirra.com/tutorials/37/beginners-guide-to-construct-2

It will answer a lot of the questions you are asking. You may need to apply it differently, but it will really give you a great start in the right direction.

If you scroll down the menu on the left and look at keeping score, it will answer your specific question on how to keep total of the bullets.

Good luck
B
13
S
4
Posts: 67
Reputation: 1,270

Post » Fri Oct 04, 2013 7:09 pm

Ammo System works ! You was right, but i didnt needed the Tutorial :-)
I tought just a little bit an than, PENG ! The idea was there :P

But i still dont understand that with the infinity screens ?
I need something like that for a Jump and Run game.
B
11
S
2
Posts: 93
Reputation: 917

Post » Fri Oct 04, 2013 9:34 pm

When you start a new project select Template: Auto Runner for the type of game you want. I have stripped it down to just the infinite background here.

https://dl.dropboxusercontent.com/u/79803565/infinite%20scrolling%20background.capx

Basically you have two tiled images next to each other. Scroll them. When the first image is finished, you just move it back to the start. Obviously you need to work on the "seam" where the left and right hand side of the images meet, to make it believeable

Thanks for posting, also learnt something tonight. Thanks to @aerirprown for pointing us in the right directions.
B
13
S
4
Posts: 67
Reputation: 1,270


Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 42 guests