3,804 Forum Posts by "Sam"
At 12/27/14 06:10 PM, MSGhero wrote: Also, I hate "xD"; it's the worst emote. When people type that in dota, I want to mute them, and sometimes I do if they've done something else annoying.
This. (sorry egg)
At 12/25/14 05:11 AM, FiendMachine wrote:At 2/29/12 03:24 PM, mike wrote:Is it possible to save a whole movie clip which has the level in it,created by the user?
Or do I have to save all the variables of the movieclip and then load the level using the variables?
Please check the dates on threads before posting.
At 12/25/14 05:51 AM, Inswivnia wrote: So I'm trying to push values from my equipz array to inventory array, and then replacing equipz values with 0's. But for some reason inventory's values are also replaced with 0's and I am just not sure why. I feel it might be because of the push() method but I am still unsure. I don't think that should be an issue because I feel they are unrelated arrays. Any help would be appreciated, maybe there is a better way to do this so I could avoid this all together. Thanks.
Arrays are passed by reference, not by value. A quick search gave this result, which should be of some use to you.
However, I'll take this opportunity to point you in the direction of object orientated programming.
The idea behind it is you'd create a Weapon class with properties and methods relating to all of your weapons, and then through the use of inheritance, create subclasses such as BrittleSword. This seems like a simple introduction to OOP, specifically in AS3.
Good luck.
Game development related threads should be posted in this forum. It'd be useful if you could provide as much information as possible (without just posting all your code) - what language are you writing in for example?
At 12/21/14 04:23 AM, bumblebirds wrote: See, it's not really a case of what the BEST language is, best is kind of a moving target. What matters is picking the right tool for the job. Can you get the game done in that language? Does it support the platforms you want to target? Are you productive in it?
I think we can all agree that this is what it comes down to, I was thinking the thread wanted a "if I had to pick one" kind of answer.
For what it's worth, JS is one of my least favorite languages.
Care to elaborate? Least favourite languages in general or specifically related to games design?
At 12/18/14 12:51 PM, Diki wrote: As for AS3 and JavaScript: I've never had any of the problems that Haxe purports to fix, despite me ripping me on them for sometimes being goofy. For me, it's solving a problem that doesn't exist so I've no use for Haxe. In fact, writing Haxe for web applications just makes things needlessly difficult for me: JavaScript is not an object-oriented language, nor does it need to be, and replacing it with one just makes me need to write more code to do simple things (and then trust that the compiled JavaScript isn't a mangled and inefficient mess).
This is an interesting point. I can agree if I were the only one working on an application, to an extent, and I've never used JavaScript in a team, but I feel static typed and (more... defined than JS) OO languages excel when there's more than one programmer.
Haxe might be a much better alternative to Java but I would never write a Java application to begin with (I don't like the language and I especially do not like the JVM), so I can't really offer any opinion on that.
Basically, my take on Haxe is: the market for it is too small and I'd rather write the languages that it compiles to.
From a profit standpoint, I can agree that you're better off knowing PHP or Java rather than just being able to produce something that'll spit it out.
From a hobbyist point of view, I'd hate to have learnt PHP or Java as a first language - in fact, the only reason I know them is because of jobs and university. I find Haxe to be consistent, which in my opinion is one of the most important aspects of a programming language.
I think because it doesn't rely on end users adopting a plugin or runtime and just adapts to what's currently used, it's appealing to smaller companies, start-ups and hobbyist programmers - one code base is so much more appealing than extra resources to develop cross platform systems. Unfortunately because of its age, I can see larger companies being reluctant to adopt it (plus, they probably still have archaic systems in place). The targets are all at different stages of development, too, and still takes a bit of tweaking to get your application consistent across them.
Obviously the crutch here being you're at the mercy of the Haxe backend programmers in terms of performance, but @MSGHero linked me to a cool little article comparing Haxe Flash Player bytecode to that of Flash Pro and AIR.
In my mind, a "universal" language is what it's trying to be. Luckily I really like the language so would choose it over the majority of languages for the platforms it targets if the situation allows it.
At 12/17/14 01:07 PM, Diki wrote: I don't like Haxe, based on my brief experiences with it, nor do I see the point in learning a language just to have it compiled to languages I already know and have years of experience with.
At 12/17/14 12:04 PM, Diki wrote: ... JavaScript/HTML5 because of the ease and simplicity of deployment, which makes up for the faults of JavaScript as language (and there are many of those).
A lot of it has to do with this. There are things I don't like in AS3, JavaScript, PHP and Java, but Haxe as a language I really enjoy writing in. The output is probably not as efficient as writing natively, but in my opinion the benefits outweigh that.
At 12/17/14 02:40 PM, MSGhero wrote: I love reading old regs' old posts. It's like "I was a child and grew up after 7 years."
At 12/17/14 02:46 PM, Diki wrote: I can say that I was a moron, that's what. And I do say that.
Another 10 years and you can say the same again.
Reppin' Haxe.
Where my boyz @?
I like the background, makes NG feel less cramped.
At 12/15/14 03:10 AM, egg82 wrote:At 12/15/14 02:33 AM, Sam wrote: Apparently fairly simply.I said AFTER this :P
I had to write a functional programming implementation of the original sieve algorithm in my second year, might try atkin's sieve.
egg82.objects.Util;
Where's your GitHub? I want to download this Util package ;)
At 12/15/14 02:27 AM, egg82 wrote: Thankfully the math after this is fairly simple so that's nice.
How the fuck do I translate all this math speak into code?
Apparently fairly simply.
At 12/15/14 01:27 AM, MSGhero wrote: This was 7 years ago. I still don't know what the answer is
The answer was 95.
At 12/13/14 05:57 PM, MSGhero wrote: Ask Tom. "Work in progress."
I suppose if a redesign is coming they'd want the same styles across the different platforms so it could be waiting on that.
At 12/13/14 11:07 AM, Diki wrote: fats/carbs make you fat, people can be genetically fat, eggs raise cholesterol, egg yolks are unhealthy, red meat gives you cancer
These drive me insane holy shit.
At 12/13/14 12:01 PM, MSGhero wrote:diki said things, quoting on phone is hard
So when's the NG BBS app coming?
I'd be inclined to agree with you but only because I've been told hitTest has bad performance in the past.
You can test this yourself fairly easily in AS3:
var cur:Number;
cur = getTimer();
myFunction();
trace("myFunction took " + (getTimer() - cur) + " milliseconds to execute");
getTimer is found in the flash.utils package.
Edit: I just realised you're using AS2, but the principle is exactly the same and you even have the same getTimer function.
At 12/11/14 10:26 PM, Barzona wrote:You have version 15,0,0,246 installed
You may have Flash Player 15 installed, but you can build to any Flash Player version. If you're using Flash Pro, you can check this by going to File > Publish Settings or in FlashDevelop by right clicking your project in the project view and going to Properties.
However, I'm not sure this will be your problem because I can't remember a time startDrag not working.
Estoy aprendiendo Español en mi tiempo libre. A la momento, puedo escribir y leer mejor que hablo y escucho, pero quiero practicar estas áreas más. Espero visitar España en el futuro, tal vez el proximó verano.
Apologies for butchering your beautiful language.
English (I think?):
I'm learning Spanish in my free time. At the moment, I can read and right better than I speak and listen, but I want to practice these areas more. I hope to visit Spain in the future, perhaps next summer.
My current Spanish knowledge doesn't really go past present tense and gerund form verbs. Slow and steady...
What version of Flash Player are you building to? This works fine for me in FP14.
Also, I find it interesting how people believe triple A titles are as good as a game can be. If these companies spend more time optimising code, I bet that computers from 4 years ago could run them just as well as they run now on comparably priced hardware. In fact, it's probably one of the main things that drive PC upgrades. So lazy scripters and engine writers do the component manufacturers a huge favour by increasing sales, and it lets them pump out games a little faster and cut a few corners.
I really like the look of the R9's for the price. The double memory 290X's seem a bit like: "Look, bigger number! We can compete with Nvidia in this price range!" though.
At 12/8/14 03:52 PM, Diki wrote:At 12/8/14 01:15 AM, Sam wrote: Not to mention we don't even have access to string.hThe hell? Why not?
Not that it would be all that difficult to implement the functions yourself, it just seems kinda silly to not allow it.
Includes just didn't seem to work in kernel space. I ended up ripping the implementations anyway.
I never want to write in C again. We have to write a kernel module for one of my university modules and the debugging process is an absolute ballache.
Not to mention we don't even have access to string.h
I miss you string.h
It's 6:15am :'(
If you can work out some general relation between length of the text and the maximum allowed width of the text box - you can potentially omit a recursive solution.
However, aside from monospace fonts, the width and height of each character can vary enough for the general solution to break with certain strings. So you could apply the general solution first and then run a while loop to fine tune it or fix certain cases.
At 11/25/14 06:18 PM, CyberMonkey30 wrote:At 11/25/14 07:58 AM, Diki wrote: What exactly are you having a problem with?testing a project in flash builder. it says that it needs an external software.
Flash Builder or FlashDevelop?
At 11/22/14 01:22 PM, swishcheese wrote: What are the other things to look at other than clock speed? Dual-core etc? what it mean? I am a noob when it comes to hardware.
I was referring to a lower level at how chips are designed. They're not all identical inside so clock speed isn't an accurate measure of performance.
I think the most reliable way to research them is to look at practical benchmarks, and a lot of them. People like to cherry pick results, some are done on incomparable hardware and some give hardly any information about what they actually tested so it's good to get as much data as you can.
Honestly, you're probably not going to see much difference (or even care once you've bought it) between two processors within the same price range from either side of the fence. A lot of people like to go mad with getting the best bang for buck but if you don't have the time to learn about it all and do research, you won't be that disappointed regardless of what you choose.
At 11/22/14 01:43 AM, swishcheese wrote: Anyway, I am going to be receiving some money for a one year sign on bonus after I graduate. I want to build my own computer with $1,000 of it. What is the best computer I can build with $1,000 USD??
Depends what you use it for, and when you think you'll be upgrading next. If you play a lot of games then you'll easy be spending a good portion of your budget on a graphics card.
Also think about form factor, I'm in love with mini-itx builds right now.
Do you need a monitor, mouse, keyboard and speakers as well?
I'd recommend Intel over AMD right now. AM3 is looking like a dead socket so if you want to upgrade in a couple of years time you'll have to overhaul your motherboard as well. I think you'd be stupid to not want to throw an SSD in there as well, and Intel's SATA controllers give better performance.
Lol. yeah man. That fan... I want at least 3.4 ghz processing speed though. 2 ghz is just not cutting it. I feel like we have the same laptop.. but I got mine for around $800 (so could be wrong), but I did get a really good deal.
Don't be fooled by clock speed, so much more goes into a processor these days.
At 11/19/14 11:05 AM, egg82 wrote: Battlestation
Liking the mic stand. Is that blue/silver thing sticking out the bottom a USB interface?
At 11/19/14 11:16 AM, MSGhero wrote: Battlestation
That QWER is both the lamest and coolest thing I've seen.
scrub invoker
At 11/19/14 11:51 AM, Innermike wrote: ayy
+1 for Bamboo and those headphones (link pls they look beasty)
New desk arrived. New pair of monitors soon.
Let's see your battlestations lads.
still can't just make a game :(
At 11/15/14 07:59 PM, sjt wrote: Hey guys this is just a combo test i was working on and i would want to know your opinion on it(is it responsive enough).
Controls:
A for combo.
Link
Thanks for any criticism.
The rate at which I have to press the key seems quick, but the animations feel sluggish in comparison.

