00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!
Response to: Newgrounds.io Help & Support Posted January 1st, 2018 in Game Development

At 12/29/17 11:51 AM, PsychoGoldfish wrote:
At 12/28/17 07:30 AM, dynamitewhale wrote:
At 12/13/17 11:46 AM, PsychoGoldfish wrote:
The key part is the error you are getting back:
"error":{"code":0,"message":"Medal.unlock requires a valid user session."}

If the user isn't signed in, they can't unlock anything. See https://bitbucket.org/newgrounds/newgrounds.io-for-unity-c/#markdown-header-using-newgrounds-passport for information on how to sign a user in.
When I am testing the game in the preview mode, I am logged in.
How can I test the API in the preview stage?

---
Do I need to start a session manually for badges to work? http://www.newgrounds.io/help/components/#app-startsession
Or does the core take care of that?`(there is somce code there that looks like it initializes the session on Start())
If you are already logged in, App.checkSession can be used to pull your user info without starting a new session.

See http://www.newgrounds.io/help/passport/ for a break down of how all the session components are meant to work.

The Unity Library should handle all that if you are using it correctly though.

Are you trying to unlock a medal instantly just to see if it works? If so, you may be sending the API call before the user object has been loaded from the server. You shouldn't make any unlock calls until after your login stuff has called your onLoggedIn() method.

Hi PsychoGoldfish,

thank you for your support. You were totally right with your suspicion of me trying to call the API before the core was initilialized..
also I was trying to run logic in the same method as calling the API, and not in the callback - that's what caused most of my issues. After resolving that, it went much smoother.
I have a last question - it's not a blocker anymore, because I hacked my way around it, but I wanted to understand how the medal.unlocked property works.

If I check the medal.unlocked property in the callback, it is alwaysfalse.
If I get the list of medals, the medal has the "correct" value (either, true or false depending on whether the medal has been unlocked or not).

Is this intended?
I implemented an ingame medal-notification, and off course I only want it to show when unlocking the medal for the first time. But since the medal.unlocked value from the callback seemed broken I now do the following:
On startup get list of all medals
Make Dictionary of medals and their unlock status
Whenever I get a medal-unlock-callback, I check my dictionary of the medals whether it was unlocked or not, and show the notification.
Then I also update the status of the medal in my dictionary.

It works fine, but it feels quite hacky.

Response to: MAZEBOT - Call for feedback! Posted January 1st, 2018 in Game Development

Response to: Newgrounds.io Help & Support Posted December 28th, 2017 in Game Development

At 12/13/17 11:46 AM, PsychoGoldfish wrote:
The key part is the error you are getting back:
"error":{"code":0,"message":"Medal.unlock requires a valid user session."}

If the user isn't signed in, they can't unlock anything. See https://bitbucket.org/newgrounds/newgrounds.io-for-unity-c/#markdown-header-using-newgrounds-passport for information on how to sign a user in.

When I am testing the game in the preview mode, I am logged in.
How can I test the API in the preview stage?

---
Do I need to start a session manually for badges to work? http://www.newgrounds.io/help/components/#app-startsession
Or does the core take care of that?`(there is somce code there that looks like it initializes the session on Start())

Response to: Newgrounds.io Help & Support Posted December 8th, 2017 in Game Development

Hi,

I'm trying to use post score and unlocking medals in Unity.
When I preview my project, i get these responses from the API in the browser console:

Call failed local validation:
{"component":"Medal.unlock","parameters":{},"secure":""}
---
Local Response:
{"medal":{"difficulty":0,"id":0,"secret":false,"unlocked":false,"value":0},"medal_score":0,"component":"Medal.unlock","success":false,"error":{"code":0,"message":"Medal.unlock requires a valid user session."}}
---

I followed the steps on https://bitbucket.org/newgrounds/newgrounds.io-for-unity-c/

My code:

io.newgrounds.components.Medal.unlock medal_unlock = new io.newgrounds.components.Medal.unlock();
medal_unlock.id = 53616;
medal_unlock.callWith(ngio_core);

Is the API supposed to work or give different responses when play via the project-preview? I'd like to test my stuff before I put it live :)

Response to: MAZEBOT - Call for feedback! Posted August 16th, 2017 in Game Development

Thank you for the feedback.

At 8/13/17 03:47 AM, 23450 wrote:
Combat is interesting, thought I do not have a clear understanding of the difference between fight and run. I get similar results from them both sometimes. I'm sure the results are not identical, but they should have clear differences. And I don't see it.

Need to do a better job of teaching the combat mechanics. It was very strange to be thrust into the mechanic after hitting an enemy. Should find a way to introduce the mechanic in a safe way, so I can expect it the first time I hit an enemy. Or at the very least, be sure I have seen the combat interface (or something similar) in a safe way.

You're so right! The difficulty is ramping up way to quick. The mechanics hit you very unprepared, and then it can be quite punishing.

I find the movement awkward. I understand it is an isometric game, so pressing 'up' make the character walk to the top right corner, as per the isometric viewpoint. But, it feels off. It was hard to get used to. Maybe revisit it.

Do you have the feeling you got used to it, or did it continue to be confusing?

MAZEBOT - Call for feedback! Posted August 12th, 2017 in Game Development

Hello Newgrounders,

Our new project "MazeBot" just released the first public version (on itch.io). We have a couple of levels, basic mechanics implemented, and before we go ahead with implementing all the crazy stuff that's on our mind, we want to see where the project is headed.

Once development will be finished, we will also release it to newgrounds, so we want to make the game great for YOU!

So please, give it a try, it would be totally awesome if you'd help us by filling out the survey linked on the site.

Thank you!
The dynamite whale

MAZEBOT - Call for feedback!