i need help in Ashley Beginner's guide/making Platform game

Get help using Construct 2

Post » Thu Nov 03, 2016 4:07 pm

hi , i have two problem in Ashley "Beginner's guide to Construct 2" and "How to make a Platform game" .

1. in Ashley "Beginner's guide to Construct 2" : in Creating a heads-up display (HUD) - page 7, when i added "Score: " & Score to Every tick event i get this error : unknown expression 'Score' , so i cant added "& Score" in the end and my HUD wont work . :oops:

2.in Ashley "How to make a Platform game" : in page 1 : i cant find Background Image\Background.png file from the sprite pack ( Jungle Background) . :oops:

thanks . :)
----------------------------------------------------------------------------------------------------------------------------------
English is not my native language. Sorry for any mistakes and feel free to correct me if needed. :ugeek:
B
6
S
1
Posts: 3
Reputation: 363

Post » Thu Nov 03, 2016 4:41 pm

In first tutorial :

Right-click the space at the bottom of the event sheet, and select Add global variable.

Image

Add a global variable.
Enter Score as the name. The other field defaults are OK, it'll make it a number starting at 0.

Image

Adding the Score global.
Now the global variable appears as a line in the event sheet. It's in this event sheet, but it can be accessed from any event sheet in any layout.

Image

The Score global variable.


Or ? Did you name the textbox 'Score' ? In that case rename it to something else (for now).
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu Nov 03, 2016 4:43 pm

1. "Score" is a global variable.
You need to define it as explained here: https://www.scirra.com/tutorials/37/beg ... ge-6#h2a22

2. background.png is in the compressed ZIP that comes with C2.
Download the package by going to the "About" window in C2 (File -> "About" at bottom) and clicking "Download Media bundle" above your license.
Download the ZIP and extract it to somewhere easily accessible.
The "background.png" will be at [ZIP extracted location]\Sprites\Jungle Platformer\Background Image\background.png
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Thu Nov 03, 2016 4:44 pm

1.) My best guess is you need to add the Global Variable of Score and you may need to remove the space after the &

2.) You can load in any plain looking colored image for a background if you cannot find the exact image you are looking for
B
34
S
15
G
1
Posts: 80
Reputation: 2,727

Post » Thu Nov 03, 2016 4:46 pm

For the second one, it states :

This tutorial uses the Jungle Platformer sprites from the bundle you get when you purchase Construct 2. Once purchased, click the Download media bundle link in the About dialog to get the extra assets bundle. If you're using the free edition, you can substitute your own graphics, or try the alternative beginner's guide which provides all the sprites you need.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Nov 04, 2016 4:05 am

thanks everyone . :D
B
6
S
1
Posts: 3
Reputation: 363


Return to How do I....?

Who is online

Users browsing this forum: 7Winter, HellMax, Lordshiva1948, Matei511, Yahoo [Bot] and 53 guests