A few questions...

For questions about using Classic.

Post » Wed Aug 10, 2011 3:53 pm

Hia there, just wanted to start by saying that I am a total newb at this haha...

Question 1, how do I change the default arrow key-controlling with 8-direction movement behavior?

Question 2, how do I save a specific Private variable? (to save a highscore)

thanks in advance :)
B
6
G
2
Posts: 39
Reputation: 1,280

Post » Wed Aug 10, 2011 5:09 pm

For 1: Click your project root (eg: Application1) in the projects bar on the left and then scroll down in the properties box on the right. You will see all of the pre-defined controls are changeable there.

For 2: You will need to use the INI object or the Binary object. I'd recommend the INI object as there are many tutorials for it on this list.

Hope this helps.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Wed Aug 10, 2011 5:10 pm

[QUOTE=helehole] Hia there, just wanted to start by saying that I am a total newb at this haha...

Question 1, how do I change the default arrow key-controlling with 8-direction movement behavior?

Question 2, how do I save a specific Private variable? (to save a highscore)

thanks in advance :)[/QUOTE]

1. In application preferences (click on layout---> click application|properties in bottom line of the properies window (which will probably be attached to your left hand screen).

2. include the ini plugin
structure a file like this and put in [appath]Data\Save\

Structure ini file like this:

[groupname]
; comment
HIGHSCORE=5000

Load the file using apppath&"Data\Save\nameofini.ini"
Then load value with INI.ItemValue("groupname","HIGHSCORE")
B
18
S
4
G
1
Posts: 413
Reputation: 2,512


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests