2D refers to two dimensional space where coordinates are represented with X and Y values.

learn more… | top users | synonyms

1
vote
2answers
25 views

how to handle the virtual Z axis in 2D games?

I'm using this paper 2d framework of UE4 where a plane mapped with sprite texture is put in 3d world and therefore appears as 2D when viewed from sideways. Its all good for games like NES mario where ...
1
vote
0answers
12 views

Unity 2D animation running partially

I have a 2D skeleton animation of human walk cycle - which is fine. I am trying hard to code that should STOP only hands animation but legs should not (on a player input - for example on space bar ...
1
vote
0answers
36 views

Position values magically flipping signs

I'm trying to make a 2D sliding puzzle game (like 15 puzzle). My main problem is getting the squares to stop just before they touch. I don't want to use colliders because I'm scared they might pop out ...
0
votes
0answers
24 views

How can I develop a simple Andoid game with basic 2D physics? [on hold]

I have a 2D game idea, and do not know how should I start. It is a simple game, where I should be able to stack up a lot of objects in a heap affected by gravity. Which framework (I have heard of ...
0
votes
0answers
35 views

I need a payment gateway for my game [on hold]

I am a game dev. I am thinking to make a game with in app purchases. But receiving money feom google play isn’t available in my country. So i am searching for other ways. Please help me. I cant use ...
5
votes
2answers
105 views

Level of detail for the map of stars

I have a large list of points (millions) in 2d. Let's say it's a star map. Each star has a radius and position in space. I want to render this map at different level of details. From a single star to ...
1
vote
1answer
40 views

Unity 2D animation issue

I have this weird animation bug in Unity that I believe is how Unity handles the frame. I dont know how to show the image so I'll do my best to explain it. So I put a bunch of 2D sprites in a ...
-3
votes
1answer
37 views

Repeating an anim at various positions in unity 2d

I never worked in unity 2d before. I just started developing a 2d game couple of days back. The gameplay of my game is almost similar to flappy bird. I successfully imported an animation file (.anim ...
2
votes
0answers
79 views

Generate camera shakes in Java

How would one of these work? (If you don't know what I'm talking about, think like in a game where you shoot a big gun, and your screen bounces in the opposite direction.) I've been experimenting ...
3
votes
1answer
73 views

Earth-like acceleration seems slow

I wanted to make a kind of "fill the box" style game where you hold down to increase size of a ball that falls when you let go, end goal being covering a percentage of the screen. Anyway, I wanted to ...
1
vote
1answer
36 views

Skeletal animation with multiple animations running at the same time

I've spent a long time attempting to figure out how complex animations are done and wrote quite a few different skeletonish frameworks myself, but they've never really came out good enough to be ...
1
vote
0answers
32 views

Triggers are not detecting colliders from other game objects in Unity version 5.2.2f1? [closed]

I was working on a basic slots game, and I came across a hiccup with the 2D Physics engine. Currently I'm letting the reels spin for three seconds. Once it has finished spinning, it will go to the ...
1
vote
1answer
47 views

Multiple Sprite animation layers overlayed in Unity Animator

I have an animator with two layers, an axe layer and a body layer. I would like to animate the two in sync with each other. They are both 64x64 sprite animations, frame-by-frame bitmaps. The ...
2
votes
2answers
31 views

How to access a prefab's boolean property through collision (with the same Prefab but different Instance)?

I am a trying to recreate the first stage of Super Mario Brothers, but I am having a bit of trouble with the collision system between Koopa Shells. I have written two different scripts in hopes to ...
4
votes
1answer
121 views

How can I handle fighting game collisions for complex animations?

Imagine that I have an animation like this. As you can see, this attack hits in three horizontal places. The opponent facing this player could be hit mid and low (standing or crouching). The same ...
46
votes
3answers
5k views

What is the term for a 3x3 tile set used to create larger areas?

What is the pattern/design name of using a 3x3 tileset (usually in a tiled 2D game) that can be used to create larger areas of itself. For example, these: (Image source) I thought it was a "9 tree"...
1
vote
1answer
67 views

How do I convert gravity from pixels per frame² into Unity's Rigidbody2D gravity scale parameter?

I'm learning Unity2D by trying to make a Mega Man clone. The first thing I'm trying to do is to replicate the original series physics. It differs from game to game, but I'm leaning towards something ...
0
votes
1answer
29 views

libgdx - Should I use OOP in ECS framework? [closed]

For example I have OOP class of Bullet and I have created the pool and factory. Should I convert it to componet based? Like BulletComponent, then handle by BulletSystem? by the way I'm using Ashley ...
0
votes
1answer
31 views

Simulation of a two-masses connected by a rod 2D system

I'm working on a multitouch-based interface and I want to add some physical behavior to gestures (pan, zoom and rotation). I thought model the system like that: When a touch starts, a point mass is ...
1
vote
2answers
52 views

Unity - Check if sprite is within range around player

I need to know if a sprite is within range (circle or square doesn't matter) around the player. If the sprite is, let's say, 100 blocks away from the player, I will disable it. This wouldn't be too ...
1
vote
0answers
94 views

Isometric map (2D) - Click detection - Mouse mapping - How to implement it? [duplicate]

I'm building an isometric engine. I use TILE_SIZE * TILE_SIZE (minecraft like) tiles. (I'm using 64 * 64 tiles but I can change the number when I want) I can access for each tiles to this ...
1
vote
3answers
63 views

BoxCollider2D Not Working

So I'm making a copy of noobtuts tutorial on Snake - http://noobtuts.com/unity/2d-snake-game I've done all their steps and am at the point of extending the game solo, however I've an issue with the ...
1
vote
1answer
35 views

Best way of making scenes persistent?

I am using Unity 2D for the past 2 weeks and when it came for changing rooms i got disappointed. Its not like ex. Gamemaker where you press a button and the room becomes persistent. I have though a ...
0
votes
0answers
35 views

LibGDX - Parallax scrolling background help

I've been trying to do a parallax scrolling effect on my 2D side-scroller game, to give the illusion of depth, by having layers at different speeds. Basically, I have a camera that follows the player....
1
vote
2answers
132 views

Java 2D Game - Screen Images Flashing

I'm currently working on a 2D Java Game. When I start the game everything works fine. A constant Update- and Framerate. When I'm using normal graphics methods to draw shapes nothing happens. But as ...
-1
votes
0answers
23 views

Make a 2D shape “orbit” a circle which has already been drawn in JAVA [duplicate]

I Have a circle, I want to make a shape (for now just a rect();) orbit around that circle. The x position of the circles center is represented by XPos and the y by YPos, the radius is represented by ...
1
vote
1answer
33 views

How to set the position of objects in pixels on the scene editor

I created a camera of the size of 480x854 as the project is meant for Android but whenever I try to position objects on the scene editor, their positions dont seem to be in pixels. It is like -10 y on ...
1
vote
0answers
28 views

How to make a Sprite have multiple armors/weapons/Accesories [duplicate]

I am currently developing a game that involves a multitude of weapons, armors, etc. I am using UE4 currently as an engine because I found that easy to use. Currently in development I have found myself ...
1
vote
1answer
48 views

Finding a point between 2 moving points colinearly , given 2 moving points and distance

P/S: The engine I work on doesn't have grouping integration. That's why I need a formula to change the position. A------B---------------C A and C are moving points that can move anywhere A = (xa, ...
0
votes
2answers
159 views

Trying to make 3D game look like 2D

I'm making a 2D dungeon crawler. The problem I found, it is that trying to animate the movement through the dungeon it is hard as hell. Then I thought that maybe a 3D dungeon will be better for this, ...
1
vote
1answer
52 views

One large tileset or multiple tilesets

I'm currently writing a 2d tile scroller for a hobby project and I can't find any resources to give me a clear answer to which is more efficient to do. Each block contains tiles 44 by 24, 32px x ...
0
votes
1answer
40 views

Combining lots of small polygons to one (some) big poly(s)

I am looking for algorithm to merge lots of relatively small 2d polygons to one or some big polygons. In case two small polygons are touching or overlapping, they should be merged to one polygon. My ...
0
votes
0answers
49 views

Simulating a rope in 3D

I want to simulate a rope in 3D. My aim is to code everything myself using Unity 5. I think it will be easier to implement a 2D rope first and then move on to the 3D version. I have read many ...
1
vote
1answer
26 views

In PhaserJS, how do I get a clicked Physics.P2 body's data?

I have a sprite with Phaser.Physics.P2 enabled, using a custom shape loaded with loadPolygon() from a .json file. I have also activated its debug and debugBody properties, so I can see the custom ...
2
votes
2answers
80 views

object smooth orbital limit around another object depending on mouse drag

I am working in Unity. I have special objects that can each be dragged freely around in 2d. The objects cannot get too close to other objects (minimal Vector3.distance allowed is 1.5f). I also have ...
1
vote
1answer
25 views

Why is my zooming-in + changing scenes not woking in Unity?

I'm zooming on a map using Math.Lerp and then I use the scene manager to change the scene. Here is my attempt but it doesn't work on the map. I have attached it to the main camera, in the worldView: ...
1
vote
2answers
76 views

Tank bullet shooting

Ok, I'm having a lot of trouble understanding using Matrices for Movement in a 2D game. I currently have a Tank object that has a Matrix3 globalTransform managing the direction Scale and Rotation. ...
1
vote
2answers
67 views

LibGDX - Collision detection between all bullets and all enemies

I'm trying to make a collision detection system between the player's bullets and all the enemies on screen. So far I had something like this: for (Bullet bullet : hero.getPistols().getAllShotBullets(...
0
votes
0answers
45 views

Create a collision detection system

Public Class Game 'NORTH = 1, EAST = 2, SOUTH = 3, WEST = 4 Dim myFont As Font = New Font(New FontFamily("Microsoft Sans Serif"), 16) 'CONSTANT VARIABLES Const RESOLUTION_WIDTH As Integer = 800 '...
0
votes
2answers
93 views

2D top down RPG animation architecture problem

I have a problem with my sprite animations right now. I have different animations and sequences for each character so an specific archer might do a ranged attack in which he just plays one animation ...
1
vote
1answer
51 views

How to switch between sprites in Unity

So I made an empty game object in inspector, called it "squareTest", and I clicked and dragged 3 sprites in. One is the square being black, one is the square being red, and one is the square being ...
0
votes
0answers
19 views

Zoom in and change scenes in unity [duplicate]

I'm trying to zoom in as my game is like a map and I have to click on a certain country to zoom in and change the scene to this country. So I want to zoom the camera slowly and then change the scene ...
0
votes
0answers
32 views

How to make the player glide after a jump in Unity?

I need a script that can make my player do an horizontal movement when he is in air (jumping) Take my older script! using UnityEngine; using System.Collections; public class Player : MonoBehaviour {...
0
votes
1answer
66 views

Zoom in and switch scenes in unity

I'm trying to zoom in as my game is like a map and I have to click on a certain country to zoom in and change the scene to this country. So I want to zoom the camera slowly and then change the scene ...
0
votes
1answer
21 views

XNA HLSL Shader Color Swapping based on lightness

I'm trying to achieve a similar effect to the image below in HLSL. [Ignore the inbetween state, currently I'm only trying to achieve the final phase, which is black and red] What I tried so far is ...
0
votes
0answers
24 views

Java - Issue colliding with more than one object

Ok, I am working on a simple 2D sidescroller game and having issues with the player (or any moving entity) colliding with another entity. My current method, (a box on north, south, east, and west to ...
0
votes
1answer
87 views

C# OpenTK Text rendering

I've been looking everywhere for a solution on how to render/draw text for my 2D OpenTK-based game. Been trying quite a few QuickFont ones without success (either a AccessViolation exception or text ...
0
votes
1answer
30 views

Unity 2d square position not lining up with its size

I want to have one square that rests at the Unity 2d coordinates (5,5). Using transform.localScale I make the square be 3 units by 3 units large. So I thought that if I made another square that is the ...
0
votes
0answers
26 views

2D Camera in LWJGL 3

I am trying to implement a simple 2D camera in LWJGL3. The camera has an orthographic projection and can move in 2D space. This is run once at game start-up: GL11.glMatrixMode(GL11.GL_PROJECTION)...
1
vote
1answer
52 views

Basic Animation Concept - Stuttering Sprites (Java)

The Problem I have some sprites animating across my screen (some spaceships). I alter their X coordinates (like -5, for animation) in my game loop. I want the animation to happen faster, however ...