Steam4C2-Basic

Discuss Scirra's 2D Asset Store

Post » Sun Jul 02, 2017 2:20 pm

Portvayne wrote:Hi.

For some reason overlay does not work on Mac OS for me. Achievements unlocked properly (After I close the game).

I use NW 21.1, Steamworks SDK 1.39


Hi,

The plugin doesn't manage the overlay so the achievement (and other steamworks features) works even if the overlay isn't displayed.
Btw, the overlay seems to have some issue with nw.js on osx; depends of the mac OS version and nw.js version. Madspy already post few tips (privacy setting on osx, check canvas refresh even on main menu (via an invisble sprite moving to force canvas refresh) etc).

Regards,
B
17
S
6
G
3
Posts: 42
Reputation: 2,282

Post » Sun Jul 02, 2017 2:23 pm

Hi,

Basic version 1.5 submitted to Scirra Store.
Supported Nw.js version: 18.7 - 19.4 - 20.0 - 20.3 - 21.1 - 22.0 - 23.0

- Add nw.js 0.23.0 support
- Update Steamworks SDK to v1.40

Regards,
B
17
S
6
G
3
Posts: 42
Reputation: 2,282

Post » Wed Aug 16, 2017 10:26 am

Hi,

Basic version 1.5.1 submitted to Scirra Store (08-15-2017).
Supported Nw.js version: 18.7 - 19.4 - 20.0 - 20.3 - 21.1 - 22.0 - 23.0 -24.0

- Add nw.js 0.24.0 support
- Update Steamworks SDK to v1.41

Regards,
B
17
S
6
G
3
Posts: 42
Reputation: 2,282

Post » Sun Oct 08, 2017 7:38 am

Hi.
Ive send you an email some days ago but got no reply.
I want to do a simple thing. On boss_sprite destroyed AND achievements "boss_dead" is locked --> Unlock achievement "boss_dead"

How do i do that?
B
26
S
6
G
2
Posts: 84
Reputation: 2,636

Post » Sun Oct 08, 2017 9:09 am

...some support please?
B
26
S
6
G
2
Posts: 84
Reputation: 2,636

Post » Sun Oct 08, 2017 9:41 am

Hi,

You have to keep track of your achievements state once your game is loaded (or while you loading player save etc) with action:
Check the State of Achievement "achievement_name"
Triggers "On Achievement is Already Unlocked" or "On Achievement is Locked"(category "Steam - Achievements - By Name") should fire, then store the result.

Quick sample
Image

Regards,
Image Image
B
25
S
14
G
139
Posts: 876
Reputation: 72,510

Post » Sun Oct 08, 2017 9:52 am

MadSpy wrote:Hi,

You have to keep track of your achievements state once your game is loaded (or while you loading player save etc) with action:
Check the State of Achievement "achievement_name"
Triggers "On Achievement is Already Unlocked" or "On Achievement is Locked"(category "Steam - Achievements - By Name") should fire, then store the result.

Quick sample
Image

Regards,


I also thought i should use instance var but i wanted to see if there is another way..
Ok, i will try it.

Thanks.
B
26
S
6
G
2
Posts: 84
Reputation: 2,636

Post » Sun Oct 08, 2017 10:19 am

dimitriosfl wrote:
I also thought i should use instance var but i wanted to see if there is another way..
Ok, i will try it.

Thanks.


You can save achivement state in a file or in local storage but it's better to check state at the beginning of the game (or once the player save is loaded) and store for the current game session. Btw, you can store it in a global var or a dictionary or an array or use Global Plugin (free or Paid)

Regards,
Image Image
B
25
S
14
G
139
Posts: 876
Reputation: 72,510

Previous

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 6 guests