All Questions

0
votes
0answers
17 views

Unity WebGL: how to copy to clipboard text from an inputField?

I would like to know if is it possible to copy a text from an InputField using c# script. Thanks
-2
votes
0answers
18 views

Game dynamic advertising - Summary of steps to incorporate in to an online game [closed]

I wish to understand the steps required to incorporate dynamic advertising into an online game. Please can you identify the key steps required following the creation of an online game to incorporate ...
0
votes
1answer
57 views

Pygame Collision Bug

I'm trying to add collisions to my first game, and it has a bug. My code is: ...
0
votes
1answer
27 views

How can I add different colliders to each body part of a character in Unity?

I have been using unity game engine for about two weeks now. And I'm very interested in 3D game development. I have been learning basics of Unity and third person games. I saw many tutorials about ...
0
votes
1answer
38 views

What is the alternative (new) 3d projection called that solves the stretching / zooming at sides of monitor?

I understand about camera's and projections etc, such that we have distortion and zooming when at the sides of the screen (exacerbated on 21:9 monitors), however a few years ago, in a Unity forum ...
7
votes
3answers
3k views

How to move the player while also allowing forces to affect it

For now, that's how I move the player: rb.velocity = Vector2.right * input.x; And I affect him a force while he is damaged by an entity: ...
1
vote
2answers
40 views

Even tiles wide pathfinding on square based tilemaps?

By editing my A* algorithm as such that: a tile is valid if all of its neighbours are valid (checking this N-1 deep) I can find N wide paths, where N is odd, and my unit just follow the "center" ...
0
votes
0answers
13 views

Use references to UIManager script or direct for children OBJs

So I've got a canvas with UIManager script attached to it, the canvas has a lot of buttons and texts as children OBJs and they somehow need to communicate to each other. Should this be done through ...
0
votes
0answers
42 views

Is Google Play Games Services Multiplayer (Turn based) free? Is there any limitation on number of users?

I was just visiting Google Play Games Services guide for signing In in Unity. I just came to know there that Google Play Games also provide services for Multiplayer. I'm currently working on my Indie ...
1
vote
1answer
29 views

How can I draw lines and curves on a canvas that's not rendered?

I need to draw lines and curves on a canvas that is not rendered on the screen but just updates the array of pixels that would otherwise be rendered. I need this to separate my game engine from my ...
0
votes
0answers
15 views

How to load an AudioClip at runtime without the WWW class?

I am currently pulling a .wav file from an API. I would like to play it at run-time. Currently I need to save the .wav file to ...
0
votes
1answer
26 views

pass by reference a transformation

I create a C # script in which I declare a transformation: public Transform Origin; When I put this script on an object of the hierarchy, in the Inspector a field Origin appears at the level of the ...
0
votes
0answers
87 views

How do I keep a rigidbody from making unnecessary collisions on smooth surfaces in Unity3d?

I have been having trouble with a custom character controller I am making. The root of the problem lies with collisions. I am trying to make movement code, but I have a problem with ground movement. ...
0
votes
0answers
35 views

Help to Code Bowling Like Feature in Unity for Mobile

I need Code or Guidelines for Touch Feature. When We Drag ball back and Send it Forward. I am Making feature like bowling, and I need Player to add force while dragging back and also curve the path of ...
1
vote
1answer
68 views

Best C# technique to pass variable from Instantiated object to GameObject

There are lots of instantiated prefabs. Info from it is transmitted while it crosses a trigger zone. Some of these are calculated custom variables. I can print the custom variables from the ...
0
votes
0answers
19 views

How do I determine the distance between two points in tilemaps in unity?

If I have a tilemap with multiple layers, is there any way that Unity offers to help me infer the distance between the two points? Also, as a related question: Are there any libraries written in C# ...
0
votes
1answer
11 views

What is causing my 3rd person camera to lose rotation on the z axis?

I've been working on a 3rd person camera on unity for a couple weeks, but I've pretty much hit a wall, specifically to do with my camera's rotation. When I rotate it on its x and y axis it won't have ...
1
vote
1answer
27 views

Camera that pivots in the direction that the player is moving

I'm trying to recreate Rocket League's freeform (non ball-locked) camera, which basically is a camera that follows the player but pivots to allows face the direction the player is moving in (not ...
1
vote
1answer
17 views

jumping and movement with rigidbody2d.velocity, gravity problem

i'm making a 2d platformer and i move my character with rigidbody2d.velocity swiping up to jump and moving while holding the left or right side of the screen. the problem is that when i jump and i ...
3
votes
1answer
112 views

How can I create the graphical concept for a game?

I don't even know the right formulation for this, but basically, I have got a gameplay idea for a mobile game and now I need to create/develop/decide: The theme of my game (e.g is it space, fantasy, ...
0
votes
0answers
8 views

How to change the alpha of an uneditable LineEdit to 1?

I noticed that Godot changes the alpha of the LineEdit text when editable = false. I want the alpha to stay 1. What I'm trying to do here is let the user input a name and then when they press enter it ...
2
votes
1answer
40 views

Issues with AABB on a platformer game

i'm facing an issue at the moment in my javascript/html platformer game that despite searching for this issue i can't solve. The problem is this: When i place two platforms next to each other and the ...
0
votes
1answer
30 views

JavaFX AnimationTimer VS Swing Game Loop

After looking at some code sources out there I noticed Java Swing Games usually create a class implementing Runnable, create a new Thread and set up the game loop ...
0
votes
1answer
17 views

How can I get sensor data on iPhone onto a Windows PC? For use as a steering wheel

I am making a Unity game. I want to be able to allow the phone to be used as a steering wheel, as input into the PC game. Technically, How can I achieve this? Can this be done through bluetooth? ...
1
vote
1answer
12 views

How to make texture for text displaying using SDL ttf with good performance?

In my game, there are many units and for each units there's an information widget attached next to them. I use SDL as the game rendering engine. I currently want to display their ID for debugging ...
1
vote
1answer
10 views

How can I use pan gestures to zoom a camera in and out

I have the following scene tree for my player: They have a Camera2D as a child, which has a script attached to it. How can I make the camera zoom in and out as I ...
0
votes
1answer
29 views

For creating a distant moon in a 3D game, is it better to use a model or texture?

I'm working on my indie game and I want to create a moon (it's a 3D game) however I am unsure if I should create a model and put it far away, or if I should use a texture on a plane and have it ...
0
votes
0answers
9 views

Unity, getting a null reference after baking in occlusion

I have imported models from blender into Unity, also checked generate lightmap UV's in the import settings. Then I set the model as static and baked the scene. After that when the object is ...
1
vote
3answers
87 views

How can I get multiple players play my multiplayer game at launch?

Lets take a example of Apex Legends, it was release in February 4, 2019 and got 25 millions users in after a week (Source: The Verge). I know EA is the publisher so its easy for them to market and ...
0
votes
0answers
27 views

Breakout collision with block laterally

I am creating a breakout game in c#. Everything is working fine excepting one feature My blocks are destroyed after the second hit ,but if the ball hits the side (left or right) of the block , the ...
0
votes
1answer
63 views

How is background of 2.5d games developed

When I say 2.5d games, I mean like this: Bloodstained Ritual of the Night DEMO gameplay My question is, I know the characters and platforms are 3d but are the backgrounds all 3d as well? Even if its ...
0
votes
0answers
18 views

On Unity how do I play an animation on drag direction?

I am trying to make an animation start when I Drag the mouse inside a picture and move it it left and down. while dragging the mouse pulling the nose down and left. I am not sure how to go about this ...
0
votes
0answers
33 views

Do I need a server if I only want to upload data to a DB?

I'm currently creating a game where people get some kind of reports for their game performance on a website. Let's say, you log-in, play the game, the system gathers your performance data and this is ...
0
votes
2answers
52 views

Player fly's off of canvas when key pressed

I am fairly new to game development. I am programming a basic JavaScript canvas game. Whenever I press a key my player goes flying off of the canvas. Here is the controller code ...
0
votes
0answers
22 views

How to let a gun follow the camera while characters hands are following the gun

I have made a character using MakeHuman, imported to blender and created a view animations. Then I imported the character as .fbx file into Unity. I set up an FPS scene with a player holding a gun in ...
0
votes
1answer
22 views

How to change the version code in application created by the GameMaker?

Code that I can not change: Image of the error: Inside the red square is written: ...
-1
votes
0answers
17 views

How can I make my car speed gradually increase overtime?

I am making a drag racing game and I want my car to accelerate until it have reached its set top speed. I am kinda new to game development so I don't much, so please help me. If I could also get a ...
1
vote
0answers
18 views

How to export an IK structure created in Blender 2.8 to Godot 3.1?

I created this IK bone structure in Blender 2.8 and exported as .escn As you can see, in Blender it's working ok. Now, how to use it in Godot? I've tried export ...
0
votes
1answer
18 views

Rotating on a slanted surface?

I want to rotate (change it's yaw) an object when its sitting on slanted ground. Pretty much I want to rotate around the ground's normal. Right now I ray cast down, get the ground's normal. Then I do:...
2
votes
0answers
15 views

How to modify A* so that it takes into account the number of movement point left?

Context : turn based game, grid system Let this graph here : (A)-2-(B)-1-(C) | /| / 1 2 2 1 | / |/ (D)-1-(E) My unit is at A and wants to go at C. ...
1
vote
0answers
20 views

Circle ceases to be a circle when radius is below a certain value

I'm using the LineRenderer component to draw a circle. It renders fine, but it's a little too large. The smallest I can set the radius is .06f. If I try to set the radius to anything less than that, ...
2
votes
2answers
46 views

Midpoint displacement generating unsatisfactory terrain

Following this lesson for implementing mid-point displacement algorithm for terrain generation. I aim at generating a wavefront(obj) file of the terrain I have an array of dimension (2^n + 1) x (2^n +...
0
votes
1answer
13 views

Unity: Change the type of a Texture2D to “Normal map” through script

I am making procedural terrains through c# script, and while I achieve to produce a texture, a heightmap and a normalmap to Texture2D, it seems they are not being ...
0
votes
0answers
12 views

Generating Mesh using Compute Shaders

I am working on a game project in unity which has a procedurally generated terrain made up of 16*128*16 chunks of blocks. The map size is going to be finite (Possibly up to ~100*100 chunks). Currently ...
1
vote
1answer
51 views

What is the purpose of multi-staged levels in mobile games?

In most recent mobile games like Grass Cut, FireBalls 3D, Twist Hit! or Snow Drift! I see the same level structure where you need to finish 3-4 mini-levels / stages in order to really finish the level....
0
votes
1answer
31 views

How to flip sprite in sfml

I am facing the same problem although the sprite flips but only one time after that it does not flips at all. Here is the code snippet: ...
0
votes
2answers
52 views

How to change 100 GameObjects' color without pushing RAM to hard?

I'm developing a mobile game and one of the gamemodes has 100 gameobjects(basic cubes). And they all have same material. I need to know how to change their color one by one with script. I'm not very ...
1
vote
1answer
30 views

Find friend groups in a virtual social graph

In my game, "people" form bonds through common interests. A person may have 1 or more interests, and a certain weight (0f - 1f) attached to it. Every now again, when 2 people are close to one ...
0
votes
1answer
24 views

inject GetComponentInChildren

How to get access to the child components using the list, I tried to inject in the traditional way equal to the array, getcomponentInChildren always gets this error. ...

15 30 50 per page