Recent posts by Draco18s on Kongregate

Flag Post

Topic: Game Programming / No blank screen, debugging mode or trace statements seen

Originally posted by Gamerboy98:

Alright, perhaps that’s a better method to rage-restart.

God, I react to programming like how I react to Math questions that I’m stuck on. But then again, the rage feels similar.

…And now I want to know why you’re trying to get into programming. Programming is nothing but math questions that will stump you.

 
Flag Post

Topic: Game Programming / No blank screen, debugging mode or trace statements seen

Yup.

 
Flag Post

Topic: Game Programming / Any ways to speed up exporting of SWF when debugging movie in Flash?

Originally posted by Draco18s:

30 seconds! The horror!

Come compassion when ypur compile times hit 3 to 5 minutes.

A gayer cpu will always help.

Oh gods, the autocowreck.

Should be:

Come complain when ypur compile times hit 3 to 5 minutes.

A faster cpu will always help.

 
Flag Post

Topic: Game Programming / Can Anyone Recommend A C++ IDE?

Eclipse/Java has put my standards at “unrealistic” when looking at other editors.

 
Flag Post

Topic: Game Programming / Any ways to speed up exporting of SWF when debugging movie in Flash?

30 seconds! The horror!

Come compassion when ypur compile times hit 3 to 5 minutes.

A gayer cpu will always help.

 
Flag Post

Topic: Game Programming / No blank screen, debugging mode or trace statements seen

and FD doesn’t open a blank window anymore

That window isn’t actually blank, its just that there’s nothing on the stage of the swf, so it looks blank. FD wouldn’t have removed “a useless blank window” because it isn’t blank or useless.

You not getting it means that there was a compile error and your movie didn’t run.

 
Flag Post

Topic: Game Programming / Problem with loop and buttons

You have 11 elements in your array, not 10. So either you need f<10 or f<=9.

The problem is that when I try to reffer to the button ( m+number) I have no idea how to do it dinamically :S

This is one of those “weird and not well documented, and really kind of bad practice, but Flash lets you do it” things. (AFAIK it’s a form of reflection ).

this["m"+f].visible = true; //assuming that "this" contains the movieclips you wish to show.

But yes. You should use an array of movieclips and do…

clips:MovieClip[] = ...;
...
clips[f-3].visible = true;
 
Flag Post

Topic: Game Programming / Using or sybmols in if conditions

Originally posted by AshAbeAdd:

The point for these conditions is that there will be 5-25 words that would only be allowed as answers. I don’t know if they would want to capitalizes all of their letters or have them lower cases. That’s why I’m allowing words to be as, “hot”, “Hot”, and “HOT”. Rereading your codes, I realized what you really meant.

If you force the user’s answer into all-caps, then you don’t have to match “hot” “Hot” “hOt” “hoT” “HOt” “HoT” “hOT” and “HOT”. Ditto for all of the rest of your words.

Am I suppose to include a library so I can use Uppercase?

No, use the string class.

var answer:String = NumArrayFull.join("");
answer = answer.ToUpperCase();

For the pluses, do you mean to put down commas?

No, I did not mean to use commas. I am using the + operator. "a" + "b" == "ab" You do not need to escape any of the doublequotes. DO NOT ALTER IT. I want to know what that trace statement yields.

It should look like this:
HOT == HOT: true
or
Hot == HOT: false

 
Flag Post

Topic: Game Programming / Using or sybmols in if conditions

trace(NumArrayFull.join("") + " == HOT" + ": " + (NumArrayFull.join("")== "HOT"));

(Your “or” operator is correct, the error is somewhere else)

 
Flag Post

Topic: Game Programming / Assistance Requested by a Programming Beginner

What’s the full error? I know what it is you’re referring to, but not well enough to actually find you some help.

Oh, and plug it into Google while you’re at it.

 
Flag Post

Topic: Game Programming / Deleting letters

Originally posted by dragon_of_celts:

Oh. I thought you were being sarcastic.

Oh not at all.

I <3 System Beep

 
Flag Post

Topic: Game Programming / Deleting letters

While ordinarily 0×07 produces the bell sound, there is, in fact, a glyph for that code

I know :P

 
Flag Post

Topic: Game Programming / Flash Drag and drop question

Originally posted by Draco18s:

Note:
I do not handle help requests via PM.

Everything from the link I have provided is easily translated into AS3.

 
Flag Post

Topic: Game Programming / Flash Drag and drop question

While this is technically for dragging Unity GUI objects, it is easily replicated in AS3. I was able to apply the code in that post to moving around GameObjects rather than Gui objects, so applying it to movieclips would be trivial.

My code didn’t use the Event system, either, just checked for mouse-up and mouse-down (lit. Input.GetMouseButton(0)), so don’t be turned off by that.

 
Flag Post

Topic: Game Programming / Deleting letters

Originally posted by dragon_of_celts:


The first 31 characters are control characters, which are not normally printable — however, they do, in some cases, have a printable glyph. You would need to test and substitute when you receive keystrokes (so if you receive a backspace keystroke, you don’t push that character onto your array, but pop one off and discard both the backspace and the popped character).

…assuming I understand what you’re trying to do and what your problem is…

My fav is 0×07

It’s totally a printable character.

 
Flag Post

Topic: Game Programming / Split my project into multiple files

If it’s impossible to maintain, it’s not an option :P

Just saying that just because it looks like an option might be more convenient, it might not actually be.

 
Flag Post

Topic: Game Programming / Pointers On Cutting Code

Some compilers can even in-line some functions. That is, it unwraps them in the translation to bytecode.

 
Flag Post

Topic: Game Programming / Kreds

This is not the forum you are looking for.

 
Flag Post

Topic: Game Programming / My passion for game development is wearing out

 
Flag Post

Topic: Game Programming / Did I market my game incorrectly?

Originally posted by EndlessSporadic:

You made a flash game. Don’t expect many plays unless you are Armor Games or the like.

Or get randomly sponsored in a super-popular Sweedish blog.1

1 One of the Kongregate contests.

 
Flag Post

Topic: Game Programming / Did I market my game incorrectly?

One thing I’ve been told about reddit is that you do not, ever, do self promotion. You can prompt other people’s stuff, but self promotion is considered bad form.

 
Flag Post

Topic: Game Programming / My passion for game development is wearing out

Originally posted by EndlessSporadic:

It means you need a hobby that isn’t video games. Once you actually start making games you realize how lackluster and boring most of them are, so you need to find something to do that takes you out of that mindset. This is especially true in the mobile market where nobody is invested in a project because they stole their ideas from someone else.

Nah, there’s more to it than that. I love programming and all of my ideas are game related. I don’t get the same thrill out of anything else than I do out of programming. Today I made a good stab at a non-ongui drag and drop inventory system. Just have top finish the tabbing system and it would be good enough to put up on the asset store.

But without a 3D modeler there’s no way this game will ever be finished.

 
Flag Post

Topic: Game Programming / My passion for game development is wearing out

*Hand in air*

Oh yeah. Totally know what you mean.

So far I’ve only found two solutions, and you’re not going to like either one.

1) Work on a project you are really really excited about, one that motivates you to work on it—even if you’re just doodling on scraps of paper—despite being exhausted from (paid) work. If this means never finishing something and always starting on new ideas, then so be it.

2) Work on a project at work during otherwise unproductive hours—those times between projects or when you’re waiting on assets from someone else. Switch gears, work on a personal project to stay busy.

(1) means you’ll never finish anything and have a lot of half-built projects collecting dust, as you’re not motivated enough to work on them. (2) requires that you have the spare hours and can get away with it. I told you you wouldn’t like either one.

 
Flag Post

Topic: Game Programming / Unity Draw Calls

Originally posted by qwerber:
Originally posted by Draco18s:

Note:
I do not handle help requests via PM.

And that’s good for the community to share information.

Precisely. I also hate it when people go “I saw you reply to my thread, I’m sending you this PM to let you know I replied back.” It’s like…dude, I don’t get PMs any faster.

 
Flag Post

Topic: Game Programming / Unity Draw Calls

Note:
I do not handle help requests via PM.