6,191 reputation
2042
bio website bartnett.com
location Brooklyn, NY
age 25
visits member for 3 years, 10 months
seen Oct 17 at 15:33

Programmer/Sound Guy/Game Chef at Eppy Games

@michaelbartnett


Apr
24
comment Sound Delay With AVAudio Player
+1 Because whatever else is contributing, part of this likely has to do with decoder delay since the file is an mp3, and it looks like the prepareToPlay message prepares the first frame of audio. Sound effects are usually stored in a format that takes little or no work to decode, or else decoded at load time and stored uncompressed in memory so they can be played instantly.
Apr
24
revised Keeping raycast on the same level
added sphere check phase, pontificated on bypassing OverlapSphere check
Apr
24
revised Keeping raycast on the same level
added sphere check phase, pontificated on bypassing OverlapSphere check
Apr
24
answered Keeping raycast on the same level
Apr
21
answered Attach Transform to another GameObject
Apr
11
comment Is it possible to make isometric game of 200 * 200 tiles per map in Unity?
Can you elaborate with a little more than "make your own renderer" for the benefit of the asker and future readers? It's not like you can just toss Unity's renderer out the window. You have to change how you use it.
Apr
1
awarded  Custodian
Mar
30
comment Proper opengl learning curve + tools
possible duplicate of Good resources for learning modern OpenGL (3.0 or later)?
Mar
29
comment Player positions in a race game through arrays or…?
@kidshenlong "Garbage" as in, little bits of memory that the garbage collector has to find and clean up later which were allocated while enumerating through a collection using Linq. Here's the List<T> documentation: msdn.microsoft.com/en-us/library/w56d4y5z.aspx
Mar
29
comment Player positions in a race game through arrays or…?
Why Linq, when List<T> has a perfectly fine Sort method? I like Linq and use it a lot, but it's also more likely to create garbage. Sort is also clearer as to what's happening.
Mar
24
answered Can I transfer C# coding I do in Unity for practice to another 3d engine?
Mar
15
comment unity3d nullreferenceexception
Also, Bogdan is on the right track--it's highly likely that your MeshFilter is null because public arrays on MonoBehaviours such as Meshes basically always get assigned a reference at runtime, even if the length is 0.
Mar
15
comment unity3d nullreferenceexception
Voting to close as "Too localized." The purpose of this site isn't best used for helping figure out small errors like a NullReferenceException.
Mar
11
answered Common practice when handling sprite animation
Mar
10
comment Unity: OnCollisionEnter not called
Good bullet points to add: Each object's respective layer must be enabled for collision in the PhysicsManager, and the ability of an object to collide with another is further defined by the collision action matrix at the bottom of this page: docs.unity3d.com/Documentation/Components/…
Mar
9
comment Deep copying or cloning in actionscript 3
@James If you want to make it more elegant, extend Image/TiledSpriteMap/whatever you're using and write a clone() method for it that also sets the frames for the new clone.
Mar
8
revised Revolve FlxSprites Around a Central FlxSprite in Flash Game made with Flixel
Added physics-y part to answer
Mar
8
answered Revolve FlxSprites Around a Central FlxSprite in Flash Game made with Flixel
Mar
7
answered Deep copying or cloning in actionscript 3
Mar
7
comment Translating a terrains position using input in Unity 3D C#
You tacked a question about input onto the end of this one, and it seems to be unrelated unless you expand the scope of your main question.