Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 16 Jan 2011
Offline Last Active May 12 2016 11:53 PM

Posts I've Made

In Topic: Start learning C# togheter with XNA?

13 September 2013 - 03:27 PM

Yes, C# is by many considered an easier language for beginners. But in my opinion you should make sure you understand the basic concepts of programming before jumping into XNA, otherwise it might be hard to grasp the XNA tutorials. Unfortunately I don't know any good C# tutorials, but a google search should bring up a dozen at least

When you feel ready to jump into XNA I recommend this site: http://www.riemers.net/ 

(and don't listen if anyone posts an "XNA is dead" comment, although it's no longer supported by Microsoft, it's still a great learning tool and can still be used to make games)

In Topic: Moving file doesn't work

08 June 2013 - 11:04 AM

The path is relative. But isn't the working directory the directory where the .exe file is located? Because fopen works with the relative path

Just guessing here, but afaik if you start the project in Debug mode through Visual Studio, then relative file paths is relative to where the vc project file resides... I may be wrong though, was some time since I wrote c++ code.. Anyway, maybe that is the problem?

In Topic: Are you making money writing games?

31 May 2013 - 01:35 PM

I told them that I only code for hugs, but they insisted on giving me money... rolleyes.gif

In Topic: Target bounce away from wall

20 January 2013 - 12:11 PM

That's right. Vector2 are also a struct, so the solution is the same as those a suggested in my previous post smile.png

In Topic: Target bounce away from wall

20 January 2013 - 08:17 AM

If target.Velocity is a C# Property then you won't be able to modify its members, since a Point in C# is of the struct data type. What this means is that target.velocity returns a temporary copy of your data, so modifying that has little meaning. The solution is to either just make velocity public, without any get:ers and set:ers, or create a method that allow you to set velocity, like so


public void SetVelocity(int velX, int velY)
      velocity.X = velX;
      velocity.Y = velY;


Why are you using Points by the way? I would suggest using Vector2 for things like speed and velocity. It's better suited for that kind of stuff



Hope that helps smile.png