Generate Report

Discussion and feedback on Construct 2

Post » Mon Apr 02, 2012 5:54 pm


Hello,
I'm new to construct and need some information.
I need to generate a report according to some gaming action.
For example:
The amount of points a player.

Got it?
Thanks and I look forward response
B
2
Posts: 11
Reputation: 272

Post » Mon Apr 02, 2012 6:00 pm

Could you be a bit more specific? Perhaps a more concrete example of what you want would be nice.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Apr 02, 2012 6:03 pm

Hi new user

[QUOTE=vascofred]
Got it?
[/QUOTE]

Not really.
What do you mean by report ? You want to display the score on screen ?
Make a global variable that is your score.
Make a text object.
Add an event "Every tick"
Add an action "Text: Set text" to global_variable

It will display the score in the text.

Is that what you were asking ?
I strongly suggest you to have a look at the beginner's guide to construct 2, it covers those type of basics.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Apr 02, 2012 6:07 pm

I'll try to explain otherwise

Assuming a game where the player needs to pick up several diamonds. At the end of the game he can catch all. His final score was 100 points. So, I want the final result is shown on the screen, and also generating a report to a file containing the information that player
B
2
Posts: 11
Reputation: 272

Post » Mon Apr 02, 2012 6:31 pm

Ahh. Generating a report to a file?
Unless I am wrong, due to security restrictions in browsers, this is impossible, unfortunately.
If you want to save user's progress, look into the webstorage object.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Apr 02, 2012 7:01 pm

Ok
I'll try to do something with it. If you can not I come here again
B
2
Posts: 11
Reputation: 272

Post » Mon Apr 02, 2012 7:08 pm

I did not find anything about how to create a WebStorage.
Can you explain?
B
2
Posts: 11
Reputation: 272

Post » Mon Apr 02, 2012 9:38 pm

Have a look at the manual and specially at the entry about webstorage.

You can also check the how do I FAQ at the section "Webstorage".

You can also check in the tutorials list the webstorage has been used more than once in those.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791


Return to Construct 2 General

Who is online

Users browsing this forum: Avengium, DonpatchXD, eli0s, MadSpy and 15 guests