All Questions

0
votes
0answers
13 views

Box2D rotational issues

I am making a game in Android Studio using LibGDX. My player is supposed to fly up and down, and angle itself accordingly(lean back/up when going up, lean forward/down when going down). I am having ...
0
votes
0answers
25 views

How can I calculate the initial velocity of a cue ball after hitting it with a cue stick?

I'm currently building a billiard game, and I'm faced with the following problem: A cue ball is hit with a stick at an angle equal to Θ. Given that the stick is hit at the exact center of the ball, ...
0
votes
0answers
10 views

Libgdx Box2D Triangle Joint behaviour

I have 3 Bodies (Nodes) that are connected in a triangualr shape using DistanceJoint's (Muscle). I'm increasing the length of the bottom Muscle(m). At a given point the "triangle" collapses and all 3 ...
1
vote
1answer
80 views

2D snake game ( how to rotate snake's head with movement ?)

I want to know: how to rotate snake's head with movement how to make tail prefabs (body) follows head direction. ...
0
votes
0answers
30 views

Unity like RigidBody physics in PyGame

I am trying to make game but first I want to make simple simulator. The goal is to have a ball fall onto a surface and then roll off the edge. Here is my code: ...
0
votes
1answer
81 views

Creating multiple levels in Unity without duplicating scripts

I'm trying to create a falling word typing game like z-type. I have used the code provided here I want to create multiple levels in the game, and it seems like I need to make some changes in the ...
0
votes
2answers
86 views

What is the difference between AR, VR and MR?

Please explain clearly and in short about the differences and boundaries between AR, VR & MR.
0
votes
2answers
78 views

Why does Unity not follow the z-value when drawing text?

I'm currently working on the credits of our game. For this I'm using multiple elements in a canvas: I want the order that these elements are drawn in to be as follows, I gave them a z-value based on ...
0
votes
1answer
56 views

Unity - Bool doesn't change to false anymore

I got into a Unity-Tutorial and halfway-through I face this weird problem. I used this code so that my player may attack if he pressed a leftShift. When the player attacks, the animation starts ...
0
votes
2answers
29 views

How do you make a particle system collision add a force to an object towards the particle system?

I have a lightning particle that gets shot at the ground. I want the particles to collide with the object they hit and add an upward force. I tried just entering a negative force in the Collider Force ...
0
votes
1answer
31 views

Control Two agents separately with one script?

I have two characters"agent" moving them on terrain by mouse. My script for both of them is... ...
0
votes
1answer
36 views

How to scale image at runtime in GameMaker?

I use this code to create a new enemy and preset some values: It runs in the step event of the player object. ...
0
votes
1answer
14 views

I can't find a way to make my projectile gameobject collide with my ofscreen collider

so my code on my collider is as followed public class Collide : MonoBehaviour { ...
1
vote
1answer
28 views

In Unity unable to find second github branch

I'm using github for unity asset and for some reason I can't find new branch that was created on a different PC. I tried refreshing, fetching, reinstalling asset, reinstalling asset and recloning ...
0
votes
0answers
18 views

Is a simple PolygonCollider2D really worse than several BoxCollider2Ds?

In my scene I have very simple quadrilateral blocks, which I'm considering using PolygonCollider2D for. These blocks will be the building blocks of the scenery so ...
1
vote
1answer
26 views

Rendering Tilemap Tile Layer Side by Side for Infinite/Endless Runner Game

I was strugeling this for days how to implement tilemap into libgdx and box2d with infinite/endless scheme. I can load a single map and display everything on screen. But placing 2 or more tilemap side ...
2
votes
0answers
32 views

Zooming in a lot without having 3D objects disappear in the Unity Editor

I'm editing the 2D colliders on some objects of my game, and I need them to be very accurate, so I'm zooming in a lot. Problem is, since my objects are 3D graphically, when I zoom in a lot they ...
0
votes
0answers
16 views

how to register update function in Lua from C game engine?

This is my first attempt to make a SDL2 based 2d game engine in C, i am planning using Lua as scripting language for gameplay purposes. First i learned how to call a C function from Lua: ...
0
votes
1answer
25 views

Unity Graphics.DrawMesh lags behind rotation?

I have a setup in unity using Graphics.DrawMesh() to draw a mesh on my players camera location in the update loop, ...
1
vote
2answers
41 views

Do I need multiple exports from Game Maker to support Windows versions above 7?

I just created a game. At the time of exporting it, I targeted windows. I use windows 7 on my computer. Obviously the game is compatible with windows 7, but I do not know if it is also compatible ...
0
votes
1answer
35 views

How can I add an in-game level editor?

I have 200 prefabs and a scene with an infinite flat plane. I want to allow user to edit the scene - add, remove, rotate, place that prefabs and save/load resulting "scene" in some custom format. ...
0
votes
2answers
53 views

Modern Techniques of Drawing Pixels?

How do game engines efficiently handle and draw pixels within a given display? As a personal project / exercise, I had begun developing a simple game engine written in Java, but came across the issue ...
0
votes
0answers
8 views

Beat Saber Editor Song List

I've installed BeatSaberEditor on my gaming computer, which works fine. I also have a development computer on the same network. I mapped a drive to the source files for the custom songs on my ...
0
votes
0answers
27 views

Smoothing runtime generated shapes edges with Monogame

I'm working on a game with the Monogame engine and I can't find a proper way to generate basic shapes with smooth edges, even after trying to dug all the Internet... Currently, I'm generating all my ...
0
votes
1answer
28 views

Sort a list of objects by distance?

Today I got issue with a script we solved here. OK, Here if enemy enter player ring, he "enemy" gets inside player list. Now, if group of enemies get inside this the ring I need to sort them by ...
0
votes
1answer
20 views

NullReferenceException when using GetComponent

I have a script that is attached to all the NPCs in my game. Here's what the variable declarations and Awake() function look like: ...
0
votes
1answer
33 views

How can I seamlessly animate textures across tiles like in Civilization 6?

I am trying to make a much simpler version of the graphic effects we see in the game Civilization 6. This question applies to the graphics on land and ocean tiles. But I first noticed this effect on ...
0
votes
1answer
22 views

Resetting The object scale to it's original size!

I have this sprite renderer in unity. I have made so that it increases it's scale. The Object is: This object is a child of empty gameObject and I have resized the parent gameObject rather than this ...
1
vote
1answer
92 views

OnMouseEnter() function stops working when I set the canvas render mode to: Camera Overlay

Basically the title says it all. I have a OnMouseEnter() function that works fine when I have the canvas render mode on Worldspace but stops working when I change it to Camera Overlay. Before, it ...
0
votes
1answer
30 views

A lot of memory taken by meshes

In the Unity Profiler, it says my meshes are taking over 200 mb memory. Thing is, I don’t have meshes in my scene. The only place they exist is in my list. Would that be it? Do prefabs on a list take ...
0
votes
0answers
34 views

Problem with Unity 2d(infinte Jump)

I'm doing a 2D videogamesin Unity, I´m a beginner so I don't know really well how to program in C#. The problem is that I want to have just one jump, but my player a infinite jump. Thanks :) ...
0
votes
1answer
14 views

Unreal Android game crashes after google play integration

I'm fairly new to android game dev but after some months of work I finished making my game in ue4. However, when uploading it to google play on an alpha track and then trying to launch the app, it ...
0
votes
0answers
25 views

Crash on start-up when running on x86_64 Android emulator 5.0 & 6.0

My game crashes on start-up when using the following emulators installed from Android Studio: Android 5.0 x86_64 emulator Android 6.0 x86_64 emulator My app does not start, and instead it displays ...
0
votes
1answer
37 views

Huge input delay although framerate is stable - possibly related to the DirectX Tool Kit?

I'm in the process of learning how to use the DirectX 11 API and came upon the following problem: Although my rendering function executes quite fast at around 150 fps (as one expects considering how ...
1
vote
1answer
8 views

AssetBundles with shaders that contain #include to cg/hlsl

I have a shader that contains some #includes to other cg/hlsl scripts. If i put that shader into an AssetBundle, how am i suppose to handle the cg/hlsl scripts? Are they not necessary anymore because ...
0
votes
1answer
18 views

Preventing the final segment in a linerenderer from being stiff?

I am creating a fishing pole, and have the script that draws the line -mostly- worked out using verlet physics. However, the final segment is stiff. The code follows an old Unity3D Subreddit post. ...
0
votes
1answer
122 views

Map generator sometimes doesn't work

I am making a dungeon map generator and am currently trying to make it place empty rooms. It first checks if the space is empty and then places a room. The problem is that most of the times it ...
1
vote
0answers
15 views

Errors when baking lights in unity3d

So, i'm developing a game in unity and avoided baking lightmaps untill now ( i just assembled my new workstation setup wich is capable of baking the lightmaps and not the computer ). And now i have ...
0
votes
0answers
9 views

Unity: finding force vector to separate colliders in OnTriggerStay events

In Unity, I have Trigger Colliders, and catch the OnTriggerStay(Collider other) events. Once two Colliders are touching, how do I get the Force vector to make them want to separate again? In the ...
1
vote
1answer
31 views

Can I have a scene graph translation node with multiple parent nodes?

I am trying to write a C++ scene graph structure. While designing the node classes I am facing the below issue. I have a scene graph to represent a house. I would like to have another house next to ...
0
votes
1answer
22 views

Scrolling Camera in Pygame is not working properly

I implemented a camera with edges in 2D side scrolling game using Pygame, it is working but sometimes it will scroll for more than it should have, and in case of using different moves that involved ...
0
votes
1answer
23 views

Unity Word Matchmaking Validation C#

Hi everyone I am new in game development, in my first development I am trying to validate if the the words if they are match with the input, unfortunately the only word it finds correct is the last ...
2
votes
2answers
64 views

2D walled map generation

I want to make a 2D walled map. the walls must be L,T,+,-,| shaped. (made from vertical and horizontal lines) There must not be a complete closed block (i.e. all parts of the map must be connected). ...
0
votes
2answers
23 views

cutting part of object

How to cut part of the object if it is inside a specific area? like showed on attached image. PS Looks like stencil should be used, but I am not really sure how to do it.
-1
votes
0answers
32 views

Method to merge / hybridize 3D models of creatures

I want to take two 3D models of creatures and create a new model that's intermediate between the two - having some features of one and some features of the other. For a start, let's say I have ...
0
votes
0answers
22 views

Rendering fibres in Unity

I would like to make this is Unity. How to to setup the script so that Unity could render such with gradient color/material as fibres? https://portsmouth.github.io/fibre/ ...
-1
votes
0answers
30 views

What is the range of motion for a pinball flipper?

I have done numerous Google searches but can't seem to find any information about on the range of motion for a pinball flipper. I appreciate these may vary across different games, but I'm looking for ...
0
votes
0answers
18 views

Unity Tiny Project TypeScript issue in Rider IDE

Currently i'm learning Unity3D Tiny Project, also i'm using Rider IDE for the development (TypeScript language). So my problem that's when i add new ecs component in the editor, i need to restart ...
1
vote
2answers
82 views

Are dice-rolls for damage calculation bad design for a tatic focused game?

I'm trying to come up with a combat system for a turn-based rpg that is inspired by p&p rpgs, but with more importance on positioning and strategy. I fell like in games where a good stragtegy is ...
0
votes
0answers
23 views

The Raycasted plane (surface) ascend or descend with my camera

I would like to be able to draw an infinite plane in order to do multiple FX (such as a fog floor) later. I used the following shader that works except that the plane (surface) seems to follow my ...

15 30 50 per page