Just prototyping things...
I was making quick prototyping, and suddenly ...
https://youtu.be/vdz1QWdnGKU
https://redd.it/1gu7faa
@r_Unity3D
I was making quick prototyping, and suddenly ...
https://youtu.be/vdz1QWdnGKU
https://redd.it/1gu7faa
@r_Unity3D
YouTube
phonk meme
I was just quick prototyping, and suddenly...
Looking for game devs
Hey everyone, is there anyone here working on a game or an app? I'd love to be part of it! I can contribute to creating the app, especially on the visual side. I can handle various types of art, including .obj models, normal illustrations, and pixel art. I can even design UI and suggest new ideas to improve the game! I really want to be credited in a game project, but unfortunately, I don’t know programming languages—just web development 😔. PLEASEEE consider my offer—I PROMISEEE I’ll give my all and genuinely help make your game amazinggg🥺🥺🥺!
https://redd.it/1gu6x6y
@r_Unity3D
Hey everyone, is there anyone here working on a game or an app? I'd love to be part of it! I can contribute to creating the app, especially on the visual side. I can handle various types of art, including .obj models, normal illustrations, and pixel art. I can even design UI and suggest new ideas to improve the game! I really want to be credited in a game project, but unfortunately, I don’t know programming languages—just web development 😔. PLEASEEE consider my offer—I PROMISEEE I’ll give my all and genuinely help make your game amazinggg🥺🥺🥺!
https://redd.it/1gu6x6y
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Unity2d Tilemap Jitter when camera moving
I'm using the latest unity urp version, I'm using a pixel perfect camera, only and ONLY my tilemap is stuttering while the camera is moving.
I've tried disabling pixel perfect, I've tried different camera movement noscripts, currently setting my camera position via:
No other sprites or the player are having this stutter, I am not using pixel snap.
This and another confirmed unity bug is driving me crazy.
https://i.redd.it/ywvvem2luo1e1.gif
https://redd.it/1gu96qz
@r_Unity3D
I'm using the latest unity urp version, I'm using a pixel perfect camera, only and ONLY my tilemap is stuttering while the camera is moving.
I've tried disabling pixel perfect, I've tried different camera movement noscripts, currently setting my camera position via:
transform.position = targetPosition; in LateUpdate() with the target being my player who is moving smoothly.No other sprites or the player are having this stutter, I am not using pixel snap.
This and another confirmed unity bug is driving me crazy.
https://i.redd.it/ywvvem2luo1e1.gif
https://redd.it/1gu96qz
@r_Unity3D
2d Skeletal animations, directly in Unity or other software?
I'm aware I can import a PSD, create the skeleton, add weights and animate all in Unity, but is that the best way? Do people use a different program to create the animations and then import those into Unity? What do you do?
https://redd.it/1gudkyo
@r_Unity3D
I'm aware I can import a PSD, create the skeleton, add weights and animate all in Unity, but is that the best way? Do people use a different program to create the animations and then import those into Unity? What do you do?
https://redd.it/1gudkyo
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
How do I call a function/run code/edit variables on a custom rule tile
I'm currently trying to implement crops into my game and I'm using custom rule tiles to do so.
The way I'm currently trying to do it is that, every time a new day starts/the in game clock reaches 24:00 and resets to 00:00, it calls a function in the noscript for the custom tile that decreases the "days until next stage" variable by 1, and when it reaches 0, it replaces it's self with what ever other tile is specified. But, when ever the next day starts, I an error:
"NullReferenceException: Object reference not set to an instance of an object dayCycle.tickTime () (at Assets/UI/dayCycle.cs:35)"
Is there a way to get this to work? Or maybe a better way of doing this I don't know of?
dayCycle:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class dayCycle : MonoBehaviour
{
Text clocktxt;
private float RawTime = 0.0F;
private float ClockHR = 0.0F;
private float ClockMN = 0.0F;
private int ClockSpeedMultiplier = 1;
void Start()
{
clocktxt = gameObject.GetComponent<Text>();
RawTime = 1425;
InvokeRepeating("tickTime", 1, 1.0f);
clocktxt.text = ClockHR.ToString("00") + ":" + ClockMN.ToString("00");
}
void tickTime()
{
RawTime += ClockSpeedMultiplier;
ClockHR = (int)RawTime / 60;
ClockMN = (int)RawTime - (int)ClockHR * 60;
if (RawTime >= 1440)
{
RawTime = 0;
cropTile.instance.DayTick();
}
clocktxt.text = ClockHR.ToString("00") + ":" + ClockMN.ToString("00");
}
}
cropTile:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Tilemaps;
[CreateAssetMenu(menuName = "Tiles/Crop Tile")]
public class cropTile : RuleTile
{
public static cropTile instance;
public item item;
public NextStageType nextStageType;
public cropTile nextStage;
public ruleTileWithData lastStage;
public int daysUntilNextStage = 1;
public Tilemap tilemap;
public Vector3Int targetCell;
void Awake()
{
instance = this;
}
public enum NextStageType
{
Grow,
Final
}
public void DayTick()
{
daysUntilNextStage--;
Debug.Log(daysUntilNextStage);
if (daysUntilNextStage <= 0)
{
if (nextStageType == NextStageType.Grow)
{
tilemap.SetTile(targetCell, nextStage);
}
if (nextStageType == NextStageType.Final)
{
tilemap.SetTile(targetCell, lastStage);
}
}
}
}
https://redd.it/1guf6zs
@r_Unity3D
I'm currently trying to implement crops into my game and I'm using custom rule tiles to do so.
The way I'm currently trying to do it is that, every time a new day starts/the in game clock reaches 24:00 and resets to 00:00, it calls a function in the noscript for the custom tile that decreases the "days until next stage" variable by 1, and when it reaches 0, it replaces it's self with what ever other tile is specified. But, when ever the next day starts, I an error:
"NullReferenceException: Object reference not set to an instance of an object dayCycle.tickTime () (at Assets/UI/dayCycle.cs:35)"
Is there a way to get this to work? Or maybe a better way of doing this I don't know of?
dayCycle:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class dayCycle : MonoBehaviour
{
Text clocktxt;
private float RawTime = 0.0F;
private float ClockHR = 0.0F;
private float ClockMN = 0.0F;
private int ClockSpeedMultiplier = 1;
void Start()
{
clocktxt = gameObject.GetComponent<Text>();
RawTime = 1425;
InvokeRepeating("tickTime", 1, 1.0f);
clocktxt.text = ClockHR.ToString("00") + ":" + ClockMN.ToString("00");
}
void tickTime()
{
RawTime += ClockSpeedMultiplier;
ClockHR = (int)RawTime / 60;
ClockMN = (int)RawTime - (int)ClockHR * 60;
if (RawTime >= 1440)
{
RawTime = 0;
cropTile.instance.DayTick();
}
clocktxt.text = ClockHR.ToString("00") + ":" + ClockMN.ToString("00");
}
}
cropTile:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Tilemaps;
[CreateAssetMenu(menuName = "Tiles/Crop Tile")]
public class cropTile : RuleTile
{
public static cropTile instance;
public item item;
public NextStageType nextStageType;
public cropTile nextStage;
public ruleTileWithData lastStage;
public int daysUntilNextStage = 1;
public Tilemap tilemap;
public Vector3Int targetCell;
void Awake()
{
instance = this;
}
public enum NextStageType
{
Grow,
Final
}
public void DayTick()
{
daysUntilNextStage--;
Debug.Log(daysUntilNextStage);
if (daysUntilNextStage <= 0)
{
if (nextStageType == NextStageType.Grow)
{
tilemap.SetTile(targetCell, nextStage);
}
if (nextStageType == NextStageType.Final)
{
tilemap.SetTile(targetCell, lastStage);
}
}
}
}
https://redd.it/1guf6zs
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Media is too big
VIEW IN TELEGRAM
Some new footage of Mekkablood: Quarry Assault. Should I add more hair to Bill's arms?
https://redd.it/1guct56
@r_Unity3D
https://redd.it/1guct56
@r_Unity3D
2D Character movement along a Quadratic Bézier Curve
I'm trying to get a 2D character to move along a Quadratic Bézier Curve with variable starting velocity and acceleration, without directly modifying the character's Global/Local Position. So it should be done through their velocity.
help is really appreciated as I've been struggling with coding this for a month now, I've tried numerous methods that didn't end up working.
[Also I'm using Godot but this issue is very math/physics focused & I have used Unity before so I know it's terms, and I can say confidently that game engine doesn't really matter here so I'm just looking for any help I can get\]
https://redd.it/1gui0bz
@r_Unity3D
I'm trying to get a 2D character to move along a Quadratic Bézier Curve with variable starting velocity and acceleration, without directly modifying the character's Global/Local Position. So it should be done through their velocity.
help is really appreciated as I've been struggling with coding this for a month now, I've tried numerous methods that didn't end up working.
[Also I'm using Godot but this issue is very math/physics focused & I have used Unity before so I know it's terms, and I can say confidently that game engine doesn't really matter here so I'm just looking for any help I can get\]
https://redd.it/1gui0bz
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Enemy AI with Events and Delegates in Unity: Dynamic Ramming Behavior
https://differ.blog/p/enemy-ai-with-events-and-delegates-in-unity-dynamic-ramming-behavior-ab8141
https://redd.it/1guj5jx
@r_Unity3D
https://differ.blog/p/enemy-ai-with-events-and-delegates-in-unity-dynamic-ramming-behavior-ab8141
https://redd.it/1guj5jx
@r_Unity3D
Differ
Enemy AI with Events and Delegates in Unity: Dynamic Ramming Behavior
Learn to implement C events, delegates, and modular AI for optimized gameplay in Unity
Day one of making my Dream Game: Today I installed unity and set my project!
https://redd.it/1gumnza
@r_Unity3D
https://redd.it/1gumnza
@r_Unity3D