How to apply code formatting within your post

Code is frequently shared on the GameDev.tv forum often by members of the community seeking an answer to a problem, or by members providing a solution to a problem. Providing consistent, easy to read code makes it easier for the person you are trying to help, or, for the people you are seeking help from.

Code formatting is essential for readability, please consider your community and take an extra moment to format your code in your post.


Applying code formatting;

  • On a new line, enter three ` characters

  • On the next line, paste / start writing your code

  • On a new line after your code, enter three ` characters

  • The preview pane displays how your code will look once posted

    With code formatting applied correctly, syntax highlighting will also be applied to your code, this further enhances the experience of the reader.



See also;

3 Likes
Still does not load the next level, gives me a win screen!
Section4 Lecture 51
Made a different game with the basics, Torches of NIM
Help needed Zombie runner WASD keys have stopped working
Having issues with implementing the pathfinding
List Class Variable?
Fire system is not working :-(
Wrong for grenade
if(currentNode==endNode) check seems broken
Need a lot of help!
Swapping Sprites
Editing Scriptable Object
Turret Not Targeting Right
Unit Data only updating if moving diagonally onto a Grid
Combo Attack Stuck on Repeat
Rooms assigned to the same key. Using Unity 2019.3.13f1
Https://www.gamedev.tv/courses/unity-multiplayer-netcode/lectures/46684557
Trouble Activating a Trigger on Unity
Nullref on StartCoroutine?
IndexOutOfRangeExeption: Index was outside the bounds of the array
Unity Third Person Combat Course
Ginger is not firing bullets when he is in air
Character runnng animations not playing when transitioning back from Jump
Enemy Ai
Im stuck with a thing ,
Sword Rotation/Sword Position is WAY off. The right side works fine. Help?
Block Breaker Speed Increase
Problems with Player and Enemy
The Tank Turret is not rotation
Asteroid avoider
Adding an additional Textbox to the same canvas
Section 5, lecture 89
Unity 5 Not recognizing what "Projectile"?
Issue with Start button on start screen - Unity 5.6.1f1
Seperation of GetGuessPrintGuess
Unexpected symbol error message keeps persisting
Developer Command Prompt Version
Unable to set UI Text using C# Script (NullReferenceException)
No slot for text on NumberWizard object
I want to pass desired position of the rock but it is not working?
Everything works but audio
SetBusy not resetting
Sound is not working?
Swing both direction lecture (video 15)
Solving your own problems