Recent posts by EndlessSporadic on Kongregate

Flag Post

Topic: Game Programming / I'm going to make my first game.

Your first game should be no more complicated than trying to get something to move from point A to point B. Set your goals EXTREMELY small. The number one pitfall of any and every developer is setting their scope too large. Development should not be “I’m going to make X, Y, and Z.” It should be “I’m going to make X. Ok, I am done making X. Now I am making Y. Ok now I am done with Y. Let’s make Z.”

As Shalmezad also pointed out, accepting criticism is huge for being successful. Making games for self-satisfaction is one thing, but if you want your game to be commercially successful you need to listen to the people who will actually play it. It doesn’t matter you think a feature is amazing – if others say it sucks, you need to remove it or change it according to their feedback.

 
Flag Post

Topic: Game Programming / Can not delete SharedObject.. Game wont stop using old save files!

http://gamua.com/starling/

This actually looks kinda interesting. This is a bit off-topic, Zapleaf, but how do you feel about this engine?

 
Flag Post

Topic: Game Programming / Can not delete SharedObject.. Game wont stop using old save files!

I’ve never heard of the Stirling Engine (which is what I assume the name of the engine is according to a Google search). Does it allow you to browse source code or is it abstracted behind multiple DLLs?

 
Flag Post

Topic: Game Programming / Unity C# API Tutorials?

It appears there are a lot of issues with Unity WebGL builds lately. Either way the code I posted above is tested and confirmed to be able to connect. Perhaps you can give us some information on how you are attempting to connect. Just remember that this script only needs to be attached to a random floating GameObject as long as it is persistent and exists as early as possible. It will connect automatically after that.

Note that I have updated the script to remove the namespace since it is not necessary in this situation.

I even added a delegate callback, though depending on the speed of the response it may never be called (meaning that the time to receive a response back that the API has connected may be shorter than the time it takes to get to the script that assigns a value to the event. I highly advise not using the delegate unless you are familiar with how they work. The delegate code is provided as-is and I make no promises that it works, but if left alone it will not break anything. You may need to include whatever dependency is required for System.Delegate (which I think is just System which should be handled by UnityEngine.dll)

 
Flag Post

Topic: Game Programming / Can not delete SharedObject.. Game wont stop using old save files!

One of two things.

1) Your game is saving the SharedObject elsewhere.
2) Your game is reading from a local copy.

In the case of number two, many game engines save ini data locally as well in many other places such as your documents folder, AppData, and beyond. It will then attempt to locate and read each of the paths in a specific order, overwriting existing data variables in the process. I doubt this is the case with your SharedObjects since I don’t know how those work, but it is always a possibility.

If you have a debugger I recommend you look into the internals of the sharedObject.Clear() method and trace the method until you figure out exactly how it is handling it. Time to put on the big boy pants, use a debugger, and look through engine code =)

 
Flag Post

Topic: Off-topic / Anime Addicts Anonymous (AAA)

Originally posted by Indy111:

My list of 20 watching anime has gone down to 8. Mostly dropped too.

That’s how I wish my list was, but I’m in too deep to just drop them now. Of the 20+ I’m watching I only care about two of them, and another two I keep forgetting exist in the first place. Plastic Memories is good at what it does, but I can’t say it is to my tastes. With that said we are reaching the episode 8-9 marker which is around the time that shows actually start putting stuff in motion if they haven’t already.

I’m looking forward to the summer shows that start airing in a few weeks. There are like 4-5 that I genuinely care about.

 
Flag Post

Topic: Game Programming / Can an Android app use Kongregate's user login

You need the Kongregate API object for the respective platform. They have one for Unity, JavaScript, and ActionScript. They do not have one for what I assume to be Java. As far as I know this object is only available within the iFrame that the game is hosted in when uploaded to Kongregate. I highly suspect your workaround won’t work, and even if it does asking for Kongregate login information outside of Kongregate is extremely sketchy, sort of unethical, and most definitely against Kongregate terms of use.

 
Flag Post

Topic: Off-topic / PC Gaming is awesome. Steam is suck.

DRM isn’t a bad thing, but it’s current implementation is atrocious. If you do not like Steam GOG has just released the GOG Galaxy.

 
Flag Post

Topic: Game Programming / Unity C# API Tutorials?

Originally posted by Draco18s:

Namespaces are fine, provided that you tell other scripts referencing that one that you’re using it!
Note the using UnityEngine; line at the top? That’s a namespace. So to use yours you’d just have to add using MyNamespace;

Thanks for that clarification. I haven’t touched Unity in ages, and sometimes creating a new unity3d C# script via MonoDevelop’s file menu added the namespace line for you, so I assumed it didn’t particularly matter and that Unity handled resolution for you.

Glad to hear you got it working, MrCatastropher!

 
Flag Post

Topic: Off-topic / Anime Addicts Anonymous (AAA)

To be honest I thought School Days was kind of refreshing. It was weird and the guy was a jerk, but it was nice to see a story that wasn’t stereotypical anime bullshit.

 
Flag Post

Topic: Game Programming / scrach games uploading

Kongregate only accepts HTML, .swf, and .unity3d files.

 
Flag Post

Topic: Game Programming / Unity C# API Tutorials?

You need to reference the GameObject the script is attached to. This game object needs to persist between scenes.

Since Connect() is called in the Start() method you do not need to worry about connecting. You can explicitly call “Connect” to ensure the connection is established. To submit a score, you call “MyGameObject.GetComponent<KongregateAPI>().Submit(”Highscore", ScoreManager.score);". Note that you may need to make these methods non-static (remove the “static” keyword from the method declaration).

If you are so inclined you can add a queue to the class and add all stat submissions to it. A coroutine will continue to check the “connected” status and submit them all when the object finally connects. This way your stat submits aren’t completely lost if the object doesn’t connect.

EDIT: You definitely do need to make Submit non-static – this was a bug in my code. I have updated the original code post with the updated code as well as a few bug fixes.

 
Flag Post

Topic: Off-topic / Anime Addicts Anonymous (AAA)

Originally posted by uzzbuzz:

So I finally finished School Days, and I take back what I said. It started out alright, but it just got worse and worse. What the fuck was that ending ;-; Crazy people. At least I’m done with it now, for now.

Aside from the twisted plot, the ending has a little story to it.

 
Flag Post

Topic: Game Programming / Player Prefs for each user

Serialize your data or use a naming convention.

By serializing your data you store all of the data into a 2D array then save the serialized string with the key of the user. To get the information you getString the user’s name then deserialize the information back into a 2D array. Note that this is expensive as changing a single value means you need to reserialize the entire 2D array.

By using a naming convention you work around serialization but sacrifice clear naming. For example, you save your data with the key “Username_KeyName” (via string concatenation).

 
Flag Post

Topic: Game Programming / Unity WebGL only build

That may be your best bet. The people here are mostly ActionScript developers and won’t know too much about Unity’s build process. I used to know a bit about Unity but I moved onto Unreal and haven’t touched the web builder in either of them. The input issues seem to be a common issue though as I’ve heard complaints about it numerous times before. I’m sure they have some information for you on their official forums.

 
Flag Post

Topic: Game Programming / Unity WebGL only build

The index.html file should not be within the zip. Remove it from your zip file and reupload it. You can do this by going to your profile, hovering over the game image, and clicking on the “edit” button that appears.

 
Flag Post

Topic: Game Programming / Question about maximum game width

If you are wondering how your game will look you can upload a dummy project and preview the dimensions to see how it looks. I recommend lowering your desktop resolution to see how it looks in other resolutions as well. I highly advise staying at or below 800px wide. Keep in mind that web development is different than desktop development – your UI needs to be designed differently. If you are finding yourself running out of real-estate you will need to redesign your menus.

 
Flag Post

Topic: Game Programming / Question about maximum game width

800 is not the maximum. It is the recommended size that will allow the game to be displayed properly on the widest set of monitors. There are still users playing on weird resolution monitors while others barely cut it with 720p.

 
Flag Post

Topic: Off-topic / Anime Addicts Anonymous (AAA)

Originally posted by Fishstickz13:

oh my god to-days episode of Ore was too much for me. I was laughing so hard throughout the entire thing but the ending was just too much oh my god my sides are non existent anymore

Seriously? I found it to be the most obnoxious episode yet. It’s like they are shoving the love into my face. It’s overloaded and way too much.

 
Flag Post

Topic: Game Programming / JavaScript Good OR Not Good

Originally posted by player_03:
Originally posted by EndlessSporadic:

To my knowledge they are no longer going to produce new “Adobe Flash” products and will no longer include it in their creative suites.

You’re going to have to cite a source. The link I posted makes it look like Flash Pro is still going strong.

Unless you’re talking about how Creative Suite was discontinued in favor of Creative Cloud, or something…

That may be it…hmm…

 
Flag Post

Topic: Off-topic / Anime Addicts Anonymous (AAA)

To each his own. Nozaki-kun was also really good. Both of the shows relied extremely heavily on character investment, so if you don’t like the characters you are shit out of luck.

 
Flag Post

Topic: Game Programming / JavaScript Good OR Not Good

Originally posted by player_03:
Originally posted by EndlessSporadic:
(I know for a fact that CS6 is their last Flash iteration)

CS6?

Adobe Flash CS6. To my knowledge they are no longer going to produce new “Adobe Flash” products and will no longer include it in their creative suites. Adobe has stated that it will no longer be included in their creative suite products, but for all I know they will support some other Flash product outside of that.

 
Flag Post

Topic: Off-topic / Anime Addicts Anonymous (AAA)

Originally posted by Indy111:

Anyone having trouble with MAL signing you out all the freaking time recently?

It is a bug with their systems. They just integrated facebook/social media logins and they are moving away from cookies (I assume by using sessions). There are a few bugs they need to iron out – the default session login time is 24 minutes, so it will log you out after 24 minutes of inactivity. It’s annoying, I know, but you can sort of work around it by refreshing your page every time you update it.

 
Flag Post

Topic: Game Programming / JavaScript Good OR Not Good

Originally posted by Drakim:
Originally posted by EndlessSporadic:

Further javascript can run on Android, unlike Flash.

As far as I know Android can run Flash. iOS can’t run Flash.

Well, both yes and no. There is Flash for android, but it has been discontinued by Adobe, meaning the flash player is getting more and more out of date, and you have to do some tricky things to install it. Eventually you can pretty much count on “regular users” not having Flash on android anymore, juts like iOS.

http://blogs.adobe.com/flashplayer/2012/06/flash-player-and-android-update.html

I see. Thanks for the clarification. I had no idea they stopped updating it. I mean I heard rumors that Adobe was dropping full support for Flash Player and Adobe Flash (I know for a fact that CS6 is their last Flash iteration), but I didn’t think it was happening this quickly.

Originally posted by Draco18s:
Originally posted by player_03:
Originally posted by Draco18s:

Until I can hover over a function name and see the comment applied to it, then ctrl-click to jump to the object definition, with full support for my own classes, then the IDE is terrible.

FlashDevelop can do that for both variables and functions, though it uses a hotkey (F4 by default) rather than ctrl+click. Also, the comment has to be Javadoc-style.

Good to know; I’ll have to mess with it next time I head up a flash project. Eclipse spoiled me, and despite my HATE for MonoDevelop, I’m using it because it’s at least got a modicum of features (and v4 is better than v2).

I tried using MonoDevelop alongside Unity, and I always had issues with it – it was slow, intellisense didn’t always work, and it was missing a lot of important debugging features. I used Eclipse for a while too and it also seemed to have it’s share of issues, mostly relating to sleep and ease of use. I’ve tended to stick to Visual Studio since most game engines have some kind of integration with it (for example Unreal 4 requires VS2013 in order to compile the engine binaries, though you can use the free version for it). As with any other IDE it has its own share of issues.

Out of curiosity how well do other IDEs handle system resources? Visual Studio doesn’t take much resources unless you have larger files and require intellisense, and it utilizes the entire CPU for compilation.

 
Flag Post

Topic: Game Programming / JavaScript Good OR Not Good

Further javascript can run on Android, unlike Flash.

As far as I know Android can run Flash. iOS can’t run Flash.

As for your scene problem, you will benefit using css and jquery. It’s easy enough to add onclick events to buttons and have the html change with css animations applied. Sizzle.js is another popular alternative. There are also a few javasript/html5 game engines out there, surprisingly. At this point I think you can drop your worries at not hitting people who don’t have HTML5-compatible browsers. At this point these people fall out of your target audience anyway. Most mobile devices come with an HTML5-compatible browser pre-installed. From what you’ve said it’s not like that matters to you since Canvas is HTML5 anyway.