# All Questions

44,977 questions
3 views

### How to Define XML Map in Monogame.Extended.Animations

I am very new to the Monogame Framework, and am trying to get started by using the Monogame.Extended.Animations library. However, when reading through the documentation on the official documentation ...
6 views

### What is the distinction between game engine and game scripting?

When Im talking about game engine The all stuff you put together like physics engine, render engine etc. On the other side game scripting should be seperated like scene objects, skill calculations ...
11 views

### How can I change the parameters of the random events for each game entity?

I'm trying to write an easy-to-use random event system that has certain conditions and effects in Unity. It's a simulation game that contains multiple Person, City, Country, Faction elements. I have ...
7 views

### Why Some objects or prefabs don't respond to mesh collider?

I imported some assets and, I used some prefabs from that assets. Some of them responds when I add the component of mesh collider to it and disable the ability of going through with it. But some of ...
14 views

### Problem with water distribution in hydraulic erosion simulation

I'm trying to implement in Python the hydraulic erosion simulation presented in this paper (Jacob Olsen, Realtime Procedural Terrain Generation, 2004) but am running into an issue at step 3 of the ...
7 views

### How To Deselect (Unfocus) All gameObjects in a Unity Scene View?

When I'm done with moving and rotating gameObjects in a Unity scene, I want to deselect everything to not accidentally change it. How? In some applications ESC key does the trick, in others 'D' (...
18 views

### Why do my NPCs fall through the world when I select them as triggers

So im making a game in Unity where when the player comes into contact with an NPC it will switch scenes. I have the code for it and made sure all NPCs have rigidbody as well as using gravity and ...
10 views

### Using Azure with Unity

I currently use Unity 2018.3.9f1. I would like to hook up my Unity program to an Azure service, so that I can store/analyse information about user behaviour. As a primer, I tried to import the ...
40 views

### Make half of the sprite transparent

Guys if I have two sprites placed on the same spot. How can I show the half of each Sprite instead of the one on top? The sprites are basic circles All sprites have basic colors, no textures.
26 views

### How does Unity store references to GameObjects in a scene

A Monobehaviour can have references to GameObjects in the same scene, but Prefabs, ScriptableObjects can't reference GameObjects in a scene. While Assets, Objects and serialization covers references ...
44 views

### How can I make Super Monkey Ball style physics?

I'm trying to create a game with physics similar to Super Monkey Ball and have been struggling to figure out how the physics work. So far, the solutions I've seen are: Rotate the entire stage (with ...
30 views

### How would I move something around inside of a sphere without it going outside of the sphere?

I want to be able to do this, but not go outside of the 4.4 meter limit, the radius is 4.4 meters, and it has zero gravity and no friction. I have a hard time explaining this, but imagine holding a ...
35 views

### What are some gameplay cases where knowing the Z as a result of the raycasting is useful in a 2D setting?

The context is an 3D engine with a 2.5D level format. Like a roller coaster tycoon level, with some other level features added, and layers removed. For example the tile functions have the following ...
36 views

### How can I draw a rectangle with a color gradient?

I'm trying to implement below picture in my code but doesn't work. It only shows red color on all sides. I'm using line renderer and color gradient. Kindly check my code. Thanks in advanced ...
26 views

### Project organization for a multiplayer client-server game

I'm programming a game 100% in Java but I'm having some issues concerning the final games architecture. I plan on having two separate projects: one that will hold the client side of communication ...
22 views

### How to update model transform of components when using physics?

I implemented a high level components system for my renderer and am curious about the right way to update the transforms components of models that have a physics rigidbody attached. I am using ...
28 views

### Overdrawn pixels vs many polygons, which affects performance the most?

I know that having overdrawn pixels is not desirable as well as having many polygons since they can decrease performance. Often when I model I have an option to decrease the number of polygons by ...
9 views

### Scripting | Logic/Workflow problems

Im trying to make a Character controller, but I have some problems. I have a principal script where is the movement with velocity, and the jump, also there is a bool for when he can move or not. The ...
21 views

### What is a good site to post my game on? [on hold]

What sites should I go to if I want people to know about my game, and download it, and give feedback.
18 views

### Unity Proximity Warning System Trigger issues

I'm trying to set up a proximity warning system but I'm having some trouble. To simplify things as much as possible: I have two game objects in a scene (Object1 and Object2). Object1 has a large ...
50 views

### Why is the play button not working on the title screen of my game?

I'm trying to open up a game demo from my class to see what it looks like, but after opening up the project in Unity, the title screen doesn't work correctly. When I try to click the "Play" button, ...
12 views

### making a tangram game in unity, how to detect when shapes match

I'm making a 2D game in Unity that's kind of like tangrams, and I wanted to know how I could check to see if the 2+ shapes together make the shape i'm trying to match. The shapes I'm putting together ...
10 views

### Pygame Error AttributeError: 'pygame.Surface' object has no attribute 'add_internal'

I'm making my first game of Pygame. I'm going to create groups for the collisions but when I add an object to the group, I get an error in sprite.py in Pygame's files: ...
52 views

### OpenGL underwater masking using stencils

My goal is rendering some underwater effects (for example depth base fog) when the camera is underwater. The above water and below water are separated by the water plane which is based on the FFT ...
36 views

I am trying to release a mobile game (insert obligatory sellout statement for Chunk of Space) on Google Play, and I'm worried about their privacy policy system. Basically, if you mark your game as "...
27 views

### XNA: Classes with Texture2D to be treated as one

Summarised Problem: I have an "Animation" class that I want to be able to treat as its Texture2D field when need be. I do not want to inherit from the class or its parents. I'd rather not create a ...
38 views

### Integrate Stripe with Unity

Good day, Need help I'm trying to install the Stripe API Library through NuGet Manager in Visual Studio but it installs it inside packages folder of the Project i.e before Project's Assets folder, ...
16 views

### Is it possible to connect an external source machine to Live Link?

I would like to be able to connect multiple external machines to Unreal Engine via Live Link in order to stream solved motion capture from one of the Vicon run-time solvers/retargeter (i.e. Pegasus). ...
12 views

### Updating same value firebase multiplayer

I've been developing a boss hitting system for my application with utilization of firebase (firestore). Simply put, there is a boss, visible to multiple users, he got max and current hp. The ...
18 views

### Changing color for each element in linerenderer not working

I want to change color for each line(element) just like in color switch. But my code is not working. What I wanted is that the right line should turn blue then the down line should turn color red. ...
28 views

### How many unity version support with 1 seat?

I bought plus unity license 1 seat so Can I use it on 2 unity version Example: Uity5.3.4p3 and unity 20183.18f1 Or it use only for one version?
30 views

### Unity3D - Generate a position within a circular band around the player

Given a certain condition in my game I need to generate a position around the player. It needs to be at least 8 meters away from him and within 10 meters, in a circular matter, as in the dotted green ...
20 views

### What resources can I look to learn 2d and 3d game physics and AI [on hold]

I am looking for some resources to learn game physics 2d and 3d maybe AI to. I am only in 8th grade though so. am looking for something simple.
37 views

### JOGL KeyListener not functioning properly

I have been having a problem with the JOGL KeyListener where if I hold down a key, it would register the key as pressed for around 1 second, then it would start quickly switching back and forth ...
22 views

In my app I need to download some images and apply them as Textures. If I use following code to get image from my local pc hard disk, it works. But it does not work if I use a url like (http://www....
13 views

### UE4 - UMG button polymorphism

I want to make a menu with a bunch of buttons. I want them all to look the same and be easier to edit, so I decided to make one "Button Parent" widget, insert it few times and give it a different "on ...
15 views

### Can I use my Unity Plus licence with Unity version 5.3.4p3?

I had Unity 5.3.4p3 from 2 years ago, and I want to use it for my current project. Since then, I've purchased a Unity Plus licence. Can I use that licence to develop and publish my Unity 5.3.4p3 ...
19 views

### DirectX sampling a Texture2DArray interpolates between textures unintentionally

I'm trying to texture my procedurally generated terrain. Previously I used an array of textures e.g. Texture tex[8], however in the shader you can't access this by ...
21 views

### How to apply a first person weapon image to your directx fps camera

simple question here, I need to know how would you devs and programmers alike add a simple "texture2d" Image of a shotgun to the camera in a fps directx 11 scene I also use a void UpdateCamera(); ...
14 views

### Button click event not triggering

I am using a button and have attached the appropriate onclick event, but whenever i click the button when playing the scene it clicks the button but it doesnt call the onclick event. Here is a ...
65 views

### How do I wait till an animation is finished?

I am currently working on a Warfare 1917 like game. Right now I am trying to get the combat system working. I have made animations for a running and shooting soldier. It takes exactly 0.5 seconds till ...
15 views

### Send a Push Notification from a device to another device (Unity, Firebase)

I have setup Firebase authentication in my game for Android. I need to implement a feature in my Android game, where a user can challenge another player. I need to implement it this way: The user is ...
19 views

### WebGL - two different approaches to Point Light: what is the difference?

So I'm studying Webgl and after directional light I'm approaching point light. So I've seen two different approaches: Take the directional light (diffuse and specular components) and multiply them ...
26 views

### Unity Networked gaming 2019… What happened to NetworkBehaviour, OnServerStart() etc

After a long break, I am now trying to learn some basics in networked gaming in Unity. I've installed the latest beta client (because I want to ultimately make a network multiplayer game but it will ...
73 views

### How to UV map a procedural cylinder mesh? (Unity)

I have a script that generates a procedural cylinder. Each side is a quad that consists of two triangles. The two triangles share vertexes, so, a side with two triangles is defined by 4 points. The ...
9 views

### Remove READ_PHONE_STATE permission from Crashlytics in Untiy

Recently I have added Crashlytics in My unity and now Game is asking for manage phone call pemission. How do i remove it from game?
37 views

### Preventing the mouse from breaking keyboard navigation in UI?

I am trying to achieve the following, a behavior like Windows Explorer where mouse and keyboard play nice together. Here's a GIF along explanations: first I click one of the folders using the mouse ...
36 views

### Getting Position of a Player in a grid

So I am making a pacman-like game. the game has tiles/grid. I keep the node data in a struct: ...