How do I make a mining game?

Get help using Construct 2

Post » Wed Mar 16, 2016 9:45 am

How do I make a game that constantly spawns blocks but like in rows and columns endlessly? I'm trying to make it an endless version of forbidden treasure (really old game) that scrolls down but like, with the player.?
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Post » Wed Mar 16, 2016 10:20 am

you could use spawn blocks outside of the screen that creates blocks as soon as blocks on top leave the screen.

It's a little bit like flappy bird - and there you should find some tutorials.

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Wed Mar 16, 2016 12:20 pm

@fm4fanAT can u post a linx or capx
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Post » Wed Mar 16, 2016 7:30 pm

You can set the block sprites as a Bullet behavior, and On Start of Layout set their Y speed to a certain number. Or, if you'd rather not do that, enable Physics and World Gravity, so they drop.

What is important however is scoring. On Touch > Object tapped > Destroy object
Add X to Global variable Score (to keep track of score.)


Ah, formatting. The two actions in Object tapped would be destroy object (if you want to them to vanish once tapped) and add a certain amount to a global variable.

You can even have 1 event sheet with the Global variable. Event sheets can be added in (in Event Sheet A, include Event sheet alpha. In Event Sheet B, include Event sheet alpha.) Doing that will reference Event Sheet Alpha in Event Sheets A and B.

Event Sheet Alpha has Global Variable Score.

Event Sheet A has on tap, add X to Global Variable Score.
Event Sheet B has on tap, add X to Global Variable Score.

So you have one Event sheet that keeps track of the score for the entire game. Remember to link them by including Alpha in all of the Event sheets that you want to add to, subtract from or reference the game's score.

PS: A, B, and Alpha are stand ins you can name your Event sheets whatever you want.
B
20
S
7
G
3
Posts: 302
Reputation: 3,634

Post » Wed Mar 16, 2016 10:47 pm

Phoenixbowman wrote:You can set the block sprites as a Bullet behavior, and On Start of Layout set their Y speed to a certain number. Or, if you'd rather not do that, enable Physics and World Gravity, so they drop.

What is important however is scoring. On Touch > Object tapped > Destroy object
Add X to Global variable Score (to keep track of score.)


Ah, formatting. The two actions in Object tapped would be destroy object (if you want to them to vanish once tapped) and add a certain amount to a global variable.

You can even have 1 event sheet with the Global variable. Event sheets can be added in (in Event Sheet A, include Event sheet alpha. In Event Sheet B, include Event sheet alpha.) Doing that will reference Event Sheet Alpha in Event Sheets A and B.

Event Sheet Alpha has Global Variable Score.

Event Sheet A has on tap, add X to Global Variable Score.
Event Sheet B has on tap, add X to Global Variable Score.

So you have one Event sheet that keeps track of the score for the entire game. Remember to link them by including Alpha in all of the Event sheets that you want to add to, subtract from or reference the game's score.

PS: A, B, and Alpha are stand ins you can name your Event sheets whatever you want.


Is there a picture representation of this, I'm a visual learner
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Post » Wed Mar 16, 2016 10:52 pm

Ayolabi12345 wrote:How do I make a game that constantly spawns blocks but like in rows and columns endlessly? I'm trying to make it an endless version of forbidden treasure (really old game) that scrolls down but like, with the player.?


top down or side view?
B
88
S
29
G
14
Posts: 1,154
Reputation: 15,003

Post » Wed Apr 20, 2016 2:56 pm

@jobel side view
B
25
S
6
G
4
Posts: 173
Reputation: 3,928


Return to How do I....?

Who is online

Users browsing this forum: Donald Cela, R0J0hound and 7 guests