Flat two-dimensional space. Positions represented with `x`, `y` coordinates.

learn more… | top users | synonyms

1
vote
2answers
58 views

Unreal Engine for 2d in c++

I was about to start my journey on unreal engine but currently all of the tutorials we're all about blueprints in 2D games. I really want to make 2d games since I am not good at 3d (not yet). My ...
-3
votes
0answers
46 views

Anyone who can make an Android game and sell it to me? [on hold]

I am just wondering if I can find an experienced Android developer who can make a 2d or 3d game for me? The person will just sell the game to me and I will take care of publishing and advertising it. ...
1
vote
1answer
29 views

How to detect collision position and that position's texture color in Unity?

I have a prefab and I use Circlecollider2D for physics operations. I want to detect the color of the contact position of the collided objects ? Is is possible by using Unity's collider classes ?
-1
votes
1answer
35 views

How can I set up a pixel-perfect camera using OpenGL and orthographic projection?

I am creating a 2D game using OpenGL and orthographic projection. For sprites, I use textured quads (actually two triangles). I want the pixel art textures for the sprites to be displayed in a ...
0
votes
1answer
44 views

How to display three dimensional Objects in a 2D Game using OpenGL and orthographic Projection?

I am creating a 2D (2.5D) game using OpenGL and orthographic projection. It is simple to have relatively flat objects, e.g. characters. I simply use a quad with a texture of the character and move ...
-1
votes
0answers
25 views

Shader request (cg shader provided) : an xBR scaling shader for Unity

I'd like to scale up my game view from a native resolution of 512x300 to 1024x600 using the xBR cg shader found here : https://github.com/libretro/common-shaders/tree/master/xbr Here is a question ...
0
votes
1answer
37 views

Monogame / XNA - Multple 2D Cameras (Rectangle) on screen

I recently started building a simple 2D roguelike game using Monogame 3.4. I was keen on building the game "engine" myself as I saw it as a fun learning curve. Monogame was pretty much the best option ...
1
vote
1answer
29 views

Why unity increase the size of image when i use the image in unity?

I try to make a game in unity 2d. But when i drop the image in unity the image size increase 3 or 4 times. Can i fix that or its normal?
1
vote
1answer
51 views

Using world coordinates instead of pixels

I've been told that having a set pixels-per-world unit number is bad practice because it will not look the same at different resolutions. Because of this, I am trying to learn about using abstract ...
1
vote
1answer
37 views

Double Jump causing problems?

Here is my code. I have an empty Gameobject directly underneath the child with a small radius checking the ground every thing seems to be correctly covered, but for some reason the jumping mechanic is ...
1
vote
0answers
27 views

LibGDX - ShapeRenderer as principal game entity renderer

I am trying to make a 2D game that is just a bunch of default figures like circles, arcs and quadrilaterals with no textures (similar to Super Hexagon), and for that I was using C# and XNA long time ...
-3
votes
0answers
27 views

Hi, could someone please help me add enemies to my lua game? I'm new to this language [closed]

So far I have created a spaceship (UFO) that can move left and right and shoot (press spacebar). I also have sound. I am unsure of how to add enemies, which is the next step of my game. I was thinking ...
0
votes
0answers
55 views

Transition Idle to Running not smooth

http://gyazo.com/441ba7f4962cf1470692b437b8ae47a4 Hello, I'm following the unity tutorial for 3D character movement and, I'm trying to make the transition to idle and running but for some reason the ...
0
votes
0answers
31 views

Bad / clipped pixel rendering of a 2d sprite

I'm testing things in unity but I've run into this problem and i can't solve it... I have the following configuration: Images of the problem: As we can see in the problem images the pixels ...
1
vote
1answer
63 views

Unity 2D Graphics Optimization For Mobile Devices

I want some advices on how to create graphical assets for mobile devices so that the game will have a good performance and not lag on mobile devices. I had 3 issues with my games and that is they ...
0
votes
1answer
31 views

Touchscript: multiple overlapping colliders

Im building a tower defense game on unity and would like to allow the player to pan the camera on a large map. I am using touchscript to handle the touches. I made a testing project with the ...
-2
votes
1answer
56 views

Optimal trajectory of area exploration

I've got next problem. There is three objects: first one, with next characteristics: circular area of view, speed, drag coefficient; wind (or water current, doesn't matter; some sort of resistance) ...
1
vote
1answer
44 views

Why is Unity 2D Alpha-Blurring my pixel sprite?

So I have just brought in a place holder block for the ground in unity 2D, and it's 16 by 16 pixel image, and for some reason unity is automatically blurring the image. So I was wondering if there was ...
0
votes
0answers
11 views

Cancelling a collision event [closed]

I am trying to make a wall (a png image) that you can't pass through. But the problem is that I don't know how to cancel the collision event so the player can't go through the wall Here is my code: ...
0
votes
1answer
36 views

Unity Quality Reduction only reduces my player sprite quality

I created a small map in tiled then imported it into Unity. A small sprite character is controlled by the player to roam about the map. I am experimenting with this for University and wanted to see ...
1
vote
2answers
421 views

Testing Unity 2D Physics

I am looking to push the 2D physics in Unity to the extent where when so much is going on that there becomes noticeable lag in a game. This is for testing purposes, so that when so much is going on ...
0
votes
1answer
34 views

Random Y Axis Movement Within Set Limits (C#)

I've searched everywhere for this answer but everything I find is in Javascript and a lot of it doesn't help/work in my situation since most of it is Vector3's and using each axis, and my game is 2D. ...
0
votes
0answers
39 views

how to move an object to the mouse in Java

I have just recently started using Java, literally 2 days ago, and I have run into an issue. While I have been easily able to figure out most of the syntax and methods, because I have used multiple ...
2
votes
1answer
72 views

2D Camera sizing and movement

Apologies if this is a basic question, or been asked a 1,000 times in the past... I'm new to Unity, and having problems understanding some of the basics to do with 2D cameras (orthographic), and ...
4
votes
2answers
188 views

2D Collision response - rotating, moving polygon hitting a wall

I'm trying to bounce a polygon that has both velocity and angular velocity off a (immovable) wall when one of the vertices collides with it. I can detect the collision, and I've worked out how to ...
2
votes
1answer
48 views

Short distances from reference point

I would like to compute short distance from reference point in 2d grid. To expose: 0, 0: not penetrable 0, 1: not penetrable ... 1, 1: penetrable ... I search an algorithm who return: 1, 1: 1 ...
1
vote
0answers
72 views

2D Parallax Scrolling

I'm trying to implement parallax scrolling and have a partially working equation (from a book I've read) but it doesn't fully align to the screen. I also want to stick purely to integer maths. I've ...
-1
votes
2answers
82 views

2D C# Collecting Item For Acceleration Unity

I have an issue regarding acceleration for Unity in C#, I'm trying to have my player collect an item and gain speed from it. Now, I have this working, but I need it to be a gradual acceleration, I ...
1
vote
1answer
57 views

Accessing the child sprites of a sprite sheet in unity?

I have a spritesheet set up with the individual sprite regions named in unity. I haven't been able to find out how to access these sprites by name?
0
votes
1answer
51 views

Making a zoom out/in space map in Unity

I'm new to unity, I was wondering how would one go into implementing a dynamic 2d space map. Let me give you an example what i mean. You see our solar system on the map, if you zoom out at a treshold ...
2
votes
2answers
149 views

C# 2D Enemy Follow Y Axis Only While Rotating to Look At Player (Unity)

I have a 2D game where the player can move up and down on the y axis, I need the enemy to rotate to look at my player (which I have working, but probably isn't the best method) while also moving up ...
0
votes
1answer
61 views

Efficient modification of Texture2D at runtime for a 2D painting game in Unity3D

I have spent some time looking for different solutions to be implemented in a mobile painting game I'm creating. At this time, everything is working but I have some serious performance problems on ...
0
votes
1answer
67 views

Working but flawed bullet spread (vector math)

I'm trying to implement random bullet spread into my game, and I've managed something that works, but is consistently flawed. The spread doesn't vary depending on the distance the mouse is from the ...
1
vote
1answer
48 views

Box2D No Gravity when moving against wall

I use Box2D in my current project and I have a problem with the gravity.. You can see my problem here: https://www.youtube.com/watch?v=2_kv9LkKwN4&feature=youtu.be when i jump normal everything ...
0
votes
1answer
65 views

[Unity]Making sure playermodel only moves 1 unit

I am doing a school assignment based off of the Unity3D tutorial 2D RogueLike (all code available here) In my version though, the movement is not turnbased and I am having some trouble figuring it ...
0
votes
2answers
49 views

Calculate land center on grid

I have a grid based game. The main map is 2d array with land ids, something like this (here are 2 lands on the map, one formed where the 1's are and one formed by where the 2's are): [ 1 , 2 , 2 ] [ ...
1
vote
0answers
65 views

How do I create this type of mixed 2D/3D character model?

I'm interested in how this little Lively Hamster Flash game's character is modelled and animated. The head seems 3D. The back always shows a black outline, so I assume it is 2D. Is this a ...
-4
votes
0answers
26 views

How can I add a force to a gameObject when I touch UI button in unity 5 [duplicate]

I'm using unity 5 How can I add a force to a gameObject when I touch UI button I want the ball to jump when I press that UI button
2
votes
2answers
93 views

2D Simplex Smooth Cave Generation

So I'm creating a system of caves below my random terrain generation, and I'm using 2D Simplex Noise to do so and I have a pretty good grasp on generating the random caves. However, the cutoff from ...
1
vote
1answer
60 views

1D Simplex Noise Returns Same Generation

I've been using 1D Simplex Noise to create a random world surface, and it keeps generating with the same looking surface terrain, with some minor variations. Here is my sample code- Tile[][] tiles = ...
0
votes
3answers
86 views

How to change the gravity with a click

How to change the gravity of a ball upward with a click Then change it again downward with another click And so on In unity
0
votes
0answers
34 views

Is resource management a good idea when dealing with animations?

New to the Unity environment here and I have a question concerning how to efficiently manage computer resources in a top down 2D game. I have a large area that looks like a 2d rpg from the 90's and ...
5
votes
1answer
107 views

QuadTree-based pathfinding for a volume body

I want to make a game where a player follows a mouse pointer. The game is not tile-based. I use quadtree for a collision detection and everything works fine. But now I want to develop a player ...
8
votes
3answers
227 views

Using full resolution of depth buffer for 2D rendering

I'm working on a front-to-back renderer for a 2D engine using an orthographic projection. I want to use the depth buffer to avoid overdraw. I have a 16-bit depth buffer, a camera at Z=100 looking at ...
3
votes
5answers
1k views

Trying to implement gun cooldowns in C#

My aim is to allow my player to shoot 3 bullets at a time. Between shooting these 3 bullets the player should wait a very small interval (so that they don't all get fired at the same time) - call this ...
3
votes
3answers
288 views

Algorithm for dividing a 2D grid into organic looking plates

the title pretty much says it all: How could one go about segmenting a 2D grid into smaller parts? My goal here is to create tectonic plates for further procedural world generation Details to ...
0
votes
2answers
178 views

Basic C# Script in Unity3D for firing a bullet (not working)

working on a 2D top-down view game. Im trying to get my player to fire a bullet when spacebar is pressed. I added a component to my player (a bullet sprite) and placed it under his gun (so you can't ...
0
votes
2answers
132 views

Moving a character depending on the direction he is facing (C#/Unity3D)

Right now I have a small soldier on the screen that moves with W, A, S, D and rotates / changes direction with the arrow keys. What I want to happen is when the player's direction changes (by using ...
0
votes
1answer
42 views

How to read a custom map format [closed]

I am trying to create a custom map format for my own little 2D RPG, so my question is rather how do I manage reading and creating a custom map format properly and flexible. First off, I am writing my ...
0
votes
1answer
24 views

Importing .anim files created using the Unity Animation controls

Our artist created some .anim files using the built-in Unity Mecanim system (where you use keyframes and drag various body parts to construct the animation). However, now we're trying to export them ...