916 reputation
418
bio website ccoder.co.uk
location
age
visits member for 2 years, 10 months
seen 17 hours ago

I first got in to programming for a hobby, then it led to a career, now it's just an excuse to make a mess in my head.

Strangely though its easy to get addicted to the mess.

So here I am, confused as ever, asking questions.

You can't know it all though, something's gotta give ;)


19h
answered Character on spherical terrain
Mar
24
comment i wish to port MMORPGS
You will need to approach the companies that have the rights to those games and ask for their permission. Once you have permission and your registered company is up and running you will be given everything you need from the game developer to handle this.
Mar
23
comment How does a loop work in game engines?
Not all engines work that way, for example in unity there's a difference between update and fixedupdate and draw in terms of timing which my answer covers. You want to draw as many frames as possible but you only want to update certain components based on fixed steps. The whole application does not work on a fixed step timing.
Mar
23
comment How does a loop work in game engines?
Best advice I can give you is to start by building some games in engines that already have the looping handled for you. Once you get your head round the timing issues associated with building stuff "per frame" you can then work up to building your own game engine. It's a massively broad topic.
Mar
23
comment Call a method on many Objects in a List C#
wtf ... wheatTiles.ForEach(t => t.Update());
Mar
23
answered C# Unity3D FPS apply damage to an enemy (Weapon bullet)
Mar
23
comment C# Unity3D FPS apply damage to an enemy (Weapon bullet)
Would it not make sense to just declare a Healthbar monobehaviour that tracks the health of a game object its attached to? then yes you are correct you need to handle a collision with say weapons / projectiles and basically do what you are already doing.
Mar
23
comment C# Unity3D FPS apply damage to an enemy (Weapon bullet)
pew pew, pew pew!
Mar
23
answered How does a loop work in game engines?
Mar
18
answered Learning To Use C# In Both VisualStudio And Unity's Monodevelop Frameworks
Mar
18
comment DirectX 11 - Get the world matrix of my camera
@Alesso read up on scene graphs you'll be needing to use one soon i'm sure. Glad to hear you solved your problem though.
Mar
18
comment DirectX 11 - Get the world matrix of my camera
or make the camera a parent of the sphere so when you set the camera pos the sphere moves with it (thinking about typical scene graphing)
Mar
18
comment How to animate objects with bobbing up and down motion in Unity?
Hey Caspert between you and @pip you basically have the bits you need to solve this now, simple enough right?
Mar
18
comment How to animate objects with bobbing up and down motion in Unity?
use a sine wave to determine the amount to move and the direction per frame and adjust the y pos on your floating object ... assuming y is up and down. This question is so vague that's about the best I can suggest without clarity.
Mar
16
comment Material optimization in Unity3d
Basically you are creating a material for each tile when all you need is 1 material for all tiles. My answer gives you that by allowing you to build a mesh with lots of tiles then for each vertex (tile corner) you can specify the texture part to use of that 1 shared material.
Mar
15
answered Material optimization in Unity3d
Mar
15
comment Unity - Proper use of threads with procedural generation
looks pretty good ... I would create all the threads up front though, saves on a per frame check for number of threads and thread creation has an overhead ... its faster to check if a thread is busy than it is to create one. I used 2 lists, one for busy threads and one for free threads, and thread code always did some basic stuff like check if there's another item in the queue and kick one off when it's complete with a queued item. It saves you having to have something else handle that ... if work is waiting let the thread go pick it up.
Mar
14
revised Unity - Proper use of threads with procedural generation
deleted 11 characters in body
Mar
14
answered How to render a pseudo-3D view like in the game Biosys (1999)?
Mar
14
answered Unity - Proper use of threads with procedural generation