2d

Character Death from enemy Unity 2D

There is an enemy under the tag "mouse" and also a code, when the hero just touches the "mouse" in any way, it disappears (mo ... ero himself dies in a horizontal collision from the mouse, but at the same time the hero can kill him by jumping on his head.

Programmatically creating 2d objects in unity

I decided to study unity. I am currently making a clone of Ball Blast, and I have the following problem. The problem is that ... and rigidbody 2d. It turns out I have to create these balls from the script. So, I do not know how to do it. Please help me.

Error "error: assignment to expression with array type"

I want to draw a field for the game. I created a 2D masiv, and I wanted to transfer some data to its cells. As a result, it r ... ain.c:23:18: error: assignment to expression with array type field[i] = "# #"; ^

How do I add 2D character animations in UE4?

I have prepared sprites for animation I need to make it so that during the movement of my character to the left , flipbook ... n Enemy, that is, the player does not play it, it will be in the role of artificial intelligence (it will move independently)

Gluing together multiple Unity 2D C sprites#

There is an array of 16x16 objects from which sprites are drawn and immediately glued into 1 large texture (each tile is 16x1 ... 0, 0, chunkTexture.width, chunkTexture.height), Vector2.zero, spriteSize );

How do I port a game to Android? Unity (redo management)

Help please. I'm doing a course work on the topic :"Games for mobile devices", but I haven't been in C# for a very long time. ... bullet.GetComponent<Rigidbody2D>(); rb.AddForce(firePoint.position * bulletForce, ForceMode2D.Impulse); }

How to determine the impact force when two objects collide via PhysX in Unity?

I work in Unity3D 5.3.4 on Windows 10. There is a complex body consisting of several separate Rigidbody2D and CircleCollide ... caused after a fall? Maybe someone has experience in solving such problems, or at least ideas on how to make a calculation.

Controlled jump in a 2D platformer

How do I make a controlled space jump in Unity? It is necessary that the longer you hold the space bar, the higher the charac ... osition.y > maxYpos || Input.GetKeyUp(KeyCode.Space)) isJump = false; if (isJump) rb.AddForce(new Vector2(0, JumpPower));

The position of the characters behind the objects in 2d (top view)

I started studying Godot. Rpg top view. And I need your advice on how to make the mob characters hide behind trees and houses ... the front plan. Who didn't understand what I was talking about here is a video - https://www.youtube.com/watch?v=Py-OA00AOFE

Rotating an object around a point

You need to rotate the object around the green point at an angle from -PI to PI. How can this be done, given that the coordinate axis starts at the top? Coordinates of the red point: (x1,y1), green point: (x2,y2)

3D illusion in a 2D game

Hi, I'm playing a game in html5. There is such a scene Initially, it was collected in the tile editor, but now I realized t ... lement the rendering of this map, how to bring it all to life, what queries to Google ? Thank you in advance for any help !)

Libgdx pseudo 3d road

Creating a road following the example of http://www.extentofthejam.com/pseudo. But there is a performance issue. Each div ... nt (trees, houses..). Which will significantly reduce the number of textures and improve performance, but will look sparse...

Switching between 2d and 3d in unity

I am writing a simple game on Unity and working in a 2d dimension, but I would like to implement a transition between 2d and ... 2d mode enters a portal and abruptly the game goes into 3d mode, hence the question: Is it possible and how to implement it?

Unity camera issue

I'm creating a game with unity 5 in 2D, and I was trying to create a script for the camera to follow the character moving the ... ution, which I send here and the latest version of the code that I have changed infinitely many times not giving anything.

Error using jplay framework for games!

Hello, I'm trying to program in java with the JPlay framework, and I'm encountering an error that was nonexistent on another ... hat does not render. I am using java version 1.8. I hope friends can help me solve this little problem of the "gray screen".

Creating 2D board with images

Hello, I am creating a 2D board game with Js / html / CSS, With the code below I can get the text of each div to move aroun ... ') { if (!(posicaoInicial - posicaFinal) == 17) { alert("Jogada Inválida"); } } } How could I do it?