# Digivance

Member

247

1724 Excellent

• Rank
Member

• Website
• Interests

7. ## What is the value of '\n' in Windows?

Lode, you many times will receive 10 followed by 13 as if it where two separate keystrokes. Personally I normally counter act this in cros platform apps by simply ignoring the character 10 or \r. Haven't found many if any reasons to use character 10 outside of windows.
8. ## Good maths for jump in 2D beatmup in Game Maker?

Kburkhart, wouldn't be the first time I misunderstood and redefined the same answer. All the same glad that we as a community where able to help the op
9. ## Good maths for jump in 2D beatmup in Game Maker?

Not sure to what extent I agree or disagree here.  What you are mentioning applies to games that have emulated depth (or 2.5d), where the Y value changes as the character moves deeper or shallower into the screen.  If this is the case you have a point where the character must land at the correct Y position but to say that it will always be the same as the Y position that the character had jumped from might be incorrect.  For example what if the player is holding up and right while jumping?  The character should land a bit higher in Y (deeper into the screen) and to the right of where it had jumped from.  Otherwise you get that uncomfortable linear jumping that we saw back in the 16 bit days.   Solution, use dual vectors.  One for the characters level position and an offset that applies to movement based animations (such as jumping or a lunging attack).  You would then apply your velocity of movement based on the offset, render and calculate collision versus the true position being the offset from the position but always bring the character back to the new position which depending on what your doing might be part position and offset or might return to the original position.  So for example, jumping would have the characters level movements effect x&y or the position while controlling the characters jump through the Y's offset.  The characters Y offset would be effected by the jumping velocity and gravity while the position would be effected by directional input.  The idea would be to add then subtract to the offset's Y bringing it back to the position Y as calculated by the input.  For something like a lunging or thrusting attack we might use the offset to propel the character forward then backward in the X axis bringing it back to the start X position.

11. ## Drawing A Rectangle In SlimDX

I have to agree that SharpDX is the better choice.  Namely because SlimDX is a C# wrapper library that links to the C++ built DirectX libraries and SharpDX is actually a rebuild of the DirectX libraries in Managed C# code (See the SharpDX website for better explanation).  Both the SlimDX and SharpDX projects are lead by the same developer, and as such SharpDX gets all of the attention now while SlimDX I believe has been all but completely abandoned.  Also from my understanding SlimDX is for Direct X 9 or 10 only and does not support Direct X 11 (I could be wrong on that one).  AFAIK Tutorials for both are still lacking and or non existent, however they should be growing in popularity and hopefully we should be seeing better resources coming along soon enough.  The good part of SharpDX is that is done come with quite a range of demo apps and source code that you can reverse engineer.  Taking what they show you and cross referencing against Direct X C++ information can get you to the answers you are looking for in most cases.  If you take this approach do be sure that you have a firm grasp on programming basics, theory and the core differences between C++ and C#.

13. ## Beginner questions

I wouldn't say that Unity is "quick and dirty".  Quick yes but Unity is quite a powerful engine and tool kit.  Other than that I would agree.  I believe it would be easier to wrap your head around the game development process by starting with something that uses a language you are friendly with (C#) and is capable of making high quality full featured games.  Also an added benefit is that Unity is widely used, you will have a very large community and knowledge base to reach out to when you have problems.  Another benefit is that many small development studios are using Unity and you will be learning something that will actually give you a bit of a leg up in the market.   If you are looking for a lower level experience where you are actually practicing and learning how to implement things more at the engine level and want to stick with a language of your choice (again C# as you mentioned it) I would suggest MonoGame.  It's actually a very nice and simple framework that will allow you to build from about one story up, I say that because it's not quite the ground level that Direct X is.  It provides quite a bit of the basic framework of a game loop and content management / pipelines that save you a lot of time and hassle.  From there you may or may not want to move into SharpDX to go even lower, however there is a major lack of tutorials and documentation for SharpDX as they assume you are already a Direct X master.  This will likely require you to learn some C++ and Direct X before you'll have a decent understanding of SharpDX.