Visual Studio is an integrated development environment (IDE) from Microsoft. It supports many different programming languages.

learn more… | top users | synonyms

0
votes
1answer
35 views

C# Script file is not showing in Onclick Event in Unity 5.0.4f1?

I uploaded the levelLoader file to the gameobject. Still, when I drag the script file onClick Event, the no function is null. Why? Can anybody help me? C# code: using UnityEngine; using System....
0
votes
1answer
39 views

On Function event of button is not loading C# Script?

I am making a car game in unity 5.0.4f1. I am facing two snags. While installing 3.5 net framework, it gives an error. I searched, it took my 2hrs and problem couldn't solve. Then, I reinstalled ...
0
votes
0answers
16 views

Per vertex weighted normal keeping in mind the crease angle in OpenGL

I am trying to calculate the per vertex weighted normals, taking crease angle into account. However, the code is taking forever to run as I have many (>12) mesh objects in my game. Is tere any better ...
0
votes
0answers
22 views

OpenGL The program '[5488] LMTproject.exe' has exited with code 1 (0x1), mouse right click not working

I am running an OpenGL programme (C++) in Visual Studio. The game has multiple menu options which can be seen on mouse right click. Initially the menu options work as expected, and I am able to summon ...
0
votes
1answer
37 views

Trapping Asserts in Visual Studio

I'm writing a 2D game with some fairly complex off-screen logic, with plenty of room for bugs. My usual habit is to write code with a lot of Asserts in it. When an Assert gets hit I drop into the ...
0
votes
0answers
86 views

How to create a bordered fullscreen SDL window (like Terraria's)

I'm coding a 2D platformer in SDL and c++ with visual studio and am wondering how to create an SDL window (with a border), that covers every part of the screen except the taskbar.
0
votes
2answers
60 views

Unity solution not compatible with Visual Studio

Since updating to the most recent version of Unity 5.4.0f3 Personal Edition, whenever I double click on a script, it launches Visual Studio, but I get an error saying that this version of Visual ...
-1
votes
1answer
56 views

Detect camera collision in OpenGL without using bounding box

Is there any way to detect collisions in OpenGL without using any kind of bounding box? I have created a maze/labyrinth and I want to move the camera/player inside the maze, such that the movement of ...
0
votes
0answers
14 views

Visualstudios community won't show my code [duplicate]

I am developing a unity Game for windows I used mono develop to script the whole thing then I figure out you need to use visual studios to develop a unity game for windows so I switch the script ...
0
votes
0answers
11 views

Trying to use Boolean Statement with a Timer Event

I am making a game and I am using a timer event in it. I am wanting, when the timer event is done, to then say Aithinking = true then it makes it true to another sub method. The issue is I have tried ...
0
votes
0answers
26 views

XNA Randomly crashes if not attached to Debugger

My XNA game crashes after about 10 sec if not launched from Debugger. When I launch it from Visual Studio the game doesn't crash, but without the Debugger it crashes. I have no idea what happens. I ...
0
votes
1answer
14 views

Change color of a texture in a specific matrix location

I have following bool matrix: bool[,] centerPiece = new bool[,] { { false, true, false }, { true, true, true }, { false, true, false } }; Using a method, I put a texture down every time the boolean ...
0
votes
2answers
46 views

Setting up a draw class giving exceptions

I'm currently trying to set up a class to draw tiles for me in different shapes, but it's currently giving me a hard time, as it's giving me nullreferenceobject errors in my secondary class. My Game ...
0
votes
1answer
42 views

Placing sprites properly to form an object

I'm working with XNA in Visual Studio, and I'm trying to draw this sprite: https://i.imgur.com/Dy5nSuG.png Only using this sprite: https://i.imgur.com/6T8TeTQ.png My current attempt relies on a ...
1
vote
1answer
60 views

Using a single square sprite to create tetris-like objects

I'm currently working on a project in XNA, Visual Studio, where it is crucial I can create the classic tetris figures solely based on one square sprite (So I can return to each individual square at a ...
0
votes
1answer
25 views

Control SDL_Mix Sound Effect Volume

My game (coded in c++) uses SDL Mixer for its sound. But how do I make certain sounds louder than others. In the game's Main menu, one button is not immediately unlocked, creating a sound if you try ...
0
votes
1answer
38 views

Why doesn't SDL_Mixer play my audio file?

I'm coding a game in SDL2 and I'm implementing the audio system using SDL_Mixer. However, my music file won't play during the program and I don't know why. How do I get the music to play? Audio ...
1
vote
1answer
55 views

Integrating the Steamworks API achievements into your game

I'm coding a game in Visual Studio 2015 and am wondering how to go about adding steam achievements to it using the Steamworks API, do I need to have my game on steam before hand or if not what's the ...
1
vote
3answers
68 views

How to export Visual Studio game for mass distribution

I've coded a Visual Studio 2015 game in SDL2 and ran some distribution tests, I gave a user the game's .exe (the raw game with no files) and they got the error SDL2.dll is missing. How would I export ...
0
votes
2answers
83 views

Debugging .FX files in Visual Studio not working

So I have been learning how to use DirectX 11 for a while now and I have chosen to use the .FX framework rather than seperate .vs & .ps files. (I know it's deprecated but I found it a little ...
-3
votes
1answer
72 views

Change sprite in C# Unity using Visual Studio [closed]

I read the answer of Change the sprite of a Object in Unity but I can't seem to make Unity to understand what to do. visual studio can handle the code but as it says drag the sprite to the code don't ...
0
votes
1answer
55 views

Building a game project in C# for Unity in VS?

Say that a project needs to be created from scratch for later use in Unity, for scripts. What is the ideal way to setup this without using a template in Visual Studio? Can this be created in C# with ...
0
votes
1answer
54 views

OpenGL multiple viewports with 3d-2d viewing

I am trying to draw two viewports, the one on top having a 3D stuff into it, and the other at bottom with a 2D stuff fed into it. However, whatever 2D stuff i draw in the bottom viewport is not ...
0
votes
1answer
15 views

How to use the Windows Phone SDK Namespaces in my Unity project?

I'm developing a game with Unity and using C# as the language for the scripts. I want to use the Device Vibration in my Microsoft Phone which is easily available for Windows Phone Development in ...
0
votes
0answers
25 views

Visual Basic: Attempting 2 sounds at one time

I want to play a looping background sound, and then play another sound on top of it. So far I'm using My.Computer.Audio.Play(My.Resources.Filename, other information), but when I play another sound, ...
0
votes
1answer
66 views

C++ Pass the reference of the class to a vector inside the constructor [closed]

Okay so i have an extern vector of pointer type 'Entity', and what i want to do is, when a new Entity type class gets constructed it gets pushed back in the vector of Entities, in C# this would be ...
0
votes
0answers
38 views

how to use cocos 2d in visual studio 2015 in windows 7

I am trying to start a new project with cocos2d-x tool in visual studio 2015 but I got problem in build the project please help me in installation of cocos2d. Thanks
1
vote
1answer
66 views

Thrown exception pointing to xmemory0

Within a static library I'm creating, I have a struct called Vertex that holds three variables used for an image drawn on a plane: struct Vertex { glm::vec2 Position; glm::vec3 Color; glm:...
0
votes
1answer
102 views

How to create animation using sprite sheet in C++ and SFML 2.0?

I was wondering how do animation using a sprite sheet. I have a sprite sheet and the size is height:400 width:601 The code I am using is: #include<SFML/Graphics.hpp> #include<iostream> ...
0
votes
1answer
62 views

SDL2 in a VS2015/C++ panel

I'm trying to use SDL2 in a panel (VS2015/C++) and cannot find solid examples of how to connect the two. Anyone know how this is done? I've tried some code found in various places, but no luck yet. ...
0
votes
1answer
49 views

Can't get to work Spritefonts on monogame 3.5(using Visual Studio 2015 Comunity)

I've been trying to get to work spritefonts, but to no avail. I've added the pipefont to the Pipeline but when I try to load it, it shows this error here Here it is the spritefont content <?xml ...
0
votes
1answer
104 views

What is the difference of target frameworks for unity3d?

In Visual Studio in properties I can change target framefork. I cannot find anywhere what means all of these magic titles. What does it all mean (full, micro base, subset, web base)? And...Can I ...
5
votes
2answers
184 views

Force Reload VS soution Explorer when adding new c# Script via Unity3d?

When I create C# script (Create -> C# Script) via Unity3d or delete it from Unity3d - Visual Studio shows me the warning window. it's annoying. Is there any way to force "ReloadAll" in solution ...
0
votes
2answers
83 views

MonoGame Gamepad Y axis flipped?

I'm following a book I bought on Google Play that is teaching me the ropes of MonoGame, and in Chapter 2 it introduces creating an input wrapper that takes care of all the input methods for a game pad ...
0
votes
1answer
93 views

Game crashes when sound is finished

I'm trying to code a simple audio playback test game (which will be used in my actual project), and everything works fine, except for the fact that after the audio has finished playing, the game will ...
0
votes
0answers
499 views

c# adding object collision to multiple objects

I'm trying to make a mario, platformer type game, and from following a tutorial, they've done the collision like this, but im wondering if there is a simpler way to it since I want to have collision ...
4
votes
1answer
256 views

How to buffer an image in winbgim?

So ive always had problems with buffers and never used them before. I read up on the topic online but since winbgim is so old i couldnt find any definite answers to the topic. So im gonna ask them ...
1
vote
1answer
558 views

CryEngine with Visual Studio 2015

I receive an error in Visual Studio when I open CESharpFramework from my project folder. I had assumed I could use Visual Studio 2015; but the error tells me I need an older version of Visual Studio ...
1
vote
0answers
68 views

Can't play sound in Monogame

I'm new in monogame so I have some problem with play sounds in my game. I have a variable: SoundEffect _soundEffect; In LoadContent() method I'm doing this: _soundEffect = Content.Load<...
0
votes
1answer
200 views

Unhandled exception at 0x0FE62707 (sfml-system-d-2.dll)

So, turned on my pc today thinking I we're gonna continue making my game but got denied by this error. Have no idea how to fix it and why it's there at all, I haven't touched my project properties in ...
0
votes
0answers
144 views

Visual Studio 2015 Unity Tools intellisense error

I just downloaded Unity 5. I use Visual Studio Community 2015 to edit the code. When i edit JavaScript files in VS it shows some of the Unity code as errors (for an example the #pragma strict). Also ...
4
votes
1answer
154 views

Monogame project runs in VS but hangs when run via .exe

I've been working on a monogame project for a little over a week and had no problems. Today I went to test out the project outside of Visual Studio, by running directly from the .exe in the release ...
0
votes
1answer
57 views

Pixel Shader from Visual Studio Graphics Diagnostics

i want to check my pixel shader variables in graphics diagnostics but unfortunately when i click start debugging in pixel history (mentioned below), a new tap will open and says source is not ...
0
votes
1answer
91 views

Collision problem with multiple tiles (rectangles)

I think that I found what the problem is, see below So I'm working on a collision system and I use multiple tiles in my project, each with a collision box. The player also has a collision box. I'm ...
2
votes
2answers
178 views

c++ text based duel game, buggy turn mechanic

so ive checked this code 100 times for mistakes and everything checks out and should be working, I've tried everything I can think of but for some reason nothing works, this makes the movement super ...
-1
votes
1answer
390 views

Turning my main(int argc, char** argv) cpp file into a class doesn't work [closed]

So, I needed to access variables from my main.cpp file in another cpp file, and the best solution for that (to me) was to make the main.cpp file a class. Like this : (sorry for long codes...) #...
1
vote
0answers
863 views

LNK2019 unresolved external symbol __imp_ glDrawArrays@12 referenced in function _main [closed]

I try this code from tutorial for learn Modern OpenGL in Visual Studio 2015: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/ With GLUT (from other tutorial), it ...
0
votes
0answers
424 views

Setting Up A Visual Studio 2015 Android C++ Project To Utilise The SFML Library And compile On An Android Device

So in Visual Studio I have installed the cross platform tools to set up a C++ project for Android and iOS such as the Android SDK, NDK and the corresponding USB drivers required to debug the program ...
1
vote
0answers
262 views

Cant load model from Content in latest Monogame version

Using MonoGame 3.4, I'm trying to display a simple textured basketball. Within the Game1 class, I've created Model mModel. My Initialize function contains all the proper Matrix information. When I ...
3
votes
1answer
339 views

Filling a polygon with a texture (or a color) C# Visual Studio

I'm trying to figure how to put a texture or fill a "DrawPolygon" with a simple color in C# Visual Studio (using right now 2015). //Left Wall 1 Point lw1a = new Point(18, 7); Point lw1b = new ...