Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 02 Sep 2011
Offline Last Active Oct 16 2013 04:15 PM

Posts I've Made

In Topic: Moving a game object up and down in Java

18 January 2013 - 09:24 AM

Ok, I going to help you a bit more:


Lets say what do you want your object to do?

Your behaviour is something like this


Are we moving down?


Move down
If we are above 200, you want to make it move up. (Hint: State Change)



Move Up

If we are below 0, you want to make it move Down. (Hint: State Change)



In Topic: Moving a game object up and down in Java

17 January 2013 - 07:25 PM

I will give you another hint, you need a state for your object, that defines what it is doing ( moving Up or Down)

In Topic: Pathfinding algorithm for AI selection

12 January 2013 - 07:23 AM

<p>Well, pathfinding you have the A* (read A star) pathfinding algorithm.</p>
<p>The concept is simple, you have your map nodes (tiles). And you try to find the perfect path to move toward the desired node by moving toward the desired location.</p>
<p>This tutorial series have good info:</p>
<p><a href="http://xnatd.blogspot.pt/2011/06/pathfinding-tutorial-part-1.html">PathFinding for XNA</a></p>
<p>Also by a general search here on gamedev you will get loads of information on the subject.</p>

In Topic: Adding or Concatenating Transforms (Scale, Rotation, Translation)

09 January 2013 - 04:36 AM

Yckx you just resumed my coding life!


I have been looking for a piece of code I wrote about 8 years ago, and I am still trying to figure out what the hell was I thinking when doing that.

Don't do the same mistakes, if you do change, comment through fully, you never know when you will need to revisit your old code. And believe me, sometimes when I am really sleepy or tired I code extraordinary things that work, do what is supposed, but I have no idea why. 


So unless this really is your bottleneck (which I doubt), don't really bother trying to optimize the code.

In Topic: Hey i'd like some knowledge

08 January 2013 - 09:56 PM

To tell the truth I would refrain from using a complex game engine to grasp concepts, Game Maker is fine for that, visual scripting and all.

After that, go with language smile.png

For starts pick a language and read about it, syntax and do general purposes exercices to learn how to do some basic stuff, after that pick a simple project and try to create your own little text game, and evolve from there. Thats what I did, kinda.


Well, not as advertising or anything but I am writting a small series in Game Programming Basics and Concepts, right now I only explained a Game Loop, I am not actually teaching how to code, but the concepts behind it. I may not be a professional, and some of my ideas might not be very correct, but that's the way I understood and the way I am trying to make people understand  this stuff. So you might enjoy reading those light posts on my blog and might learn a few things. Currently there is not much info, but I usually write a article each two to three days. Anyway....