r_unity3d | Unsorted

Telegram-канал r_unity3d - r/Unity3D

156

News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).

Subscribe to a channel

r/Unity3D

Hit particles depending on wall

What would be the right way to do this? having a Hitbox script on each wall that has a particle prefab reference that instantiates on hit point when hit?

https://redd.it/1cx0e8n
@r_Unity3D

Читать полностью…

r/Unity3D

I need a constant force exerted

I have a character that lunges forward every so often. I have a rigid body 2D on him, with linear drag 1 and angular drag 0.05 and mass accordingly to what I want, and I have gravity at 0. I have a script where every time an animation finishes it calls a line of code that rb.AddRelativeForce(Vector2.up strength Time.deltaTime); I have a set variable for the strength. The character is meant to launch forwards a bit and then slow down until reaching a hault before launching forwards a bit again. Recently I've noticed that its not thrusting forwards with the same force everytime. Each thrust is slightly different in force. And sometimes (mostly when I first open the scene or when I hit a bit of lag) the character will launch extraordinarily fast. I want it to launch forwards the same force everytime. Any suggestions.

https://redd.it/1cwx5yi
@r_Unity3D

Читать полностью…

r/Unity3D

Never made a Reddit post

Just wanted to put this here. Started learning to create games May 14, I’m overwhelmed af and am more lost and confused every day. But hopefully I will stick with this motivation and come back to this post one day and be proud of how far I’ve come. To future me and the rest of you beginners 🫡

https://redd.it/1cwtd30
@r_Unity3D

Читать полностью…

r/Unity3D

Kiki now has its own Steam page, give us a wishlist!


https://redd.it/1cwmea1
@r_Unity3D

Читать полностью…

r/Unity3D

Crab God is not just a game where you become a deity in the underwater world of crabs. Through collaboration with dots.eco, your in-game achievements will contribute to real efforts in ocean conservation. So, are you ready to save the underwater world?

https://redd.it/1cwnlyf
@r_Unity3D

Читать полностью…

r/Unity3D

I don't know what i did wrong, it is my first time writing code.

https://preview.redd.it/c5ttey8ryl1d1.png?width=543&format=png&auto=webp&s=6a43aecb8b5616490d951a4b40d1193fefb2e0e8

Hi, I was following this https://learn.unity.com/course/2d-beginner-adventure-game?uv=2022.3 course from unity and I was in the part where it teaches you on how to move the player, but it is showing the code is wrong and not working. Does anyone know what to do

https://redd.it/1cwjt8d
@r_Unity3D

Читать полностью…

r/Unity3D

Published my first game in Google Play Store for free! No ads
https://redd.it/1cwhx31
@r_Unity3D

Читать полностью…

r/Unity3D

my 2g game is out SPACE YUCCA , come show some love !!
https://play.google.com/store/apps/details?id=com.littleBlueFishProductions.spaceYucca

https://redd.it/1cwci2h
@r_Unity3D

Читать полностью…

r/Unity3D

The Steam page of our game has just opened, come and support us!
https://www.youtube.com/watch?v=iHeCUlF18u0

https://redd.it/1cwc34a
@r_Unity3D

Читать полностью…

r/Unity3D

Where did my sprites-lit-material go?
https://redd.it/1cw9k1y
@r_Unity3D

Читать полностью…

r/Unity3D

How to import these sprites correctly

Hi,

I downloaded this sprite pack: https://www.gameart2d.com/free-dino-sprites.html I'm struggling to get them imported into unity in a correct way. The images are all 680x472 pixels, however, most of the space is not used. My problem is that most of the images contain a bit of invisible padding on all sides of the image, and most images are placed to the left. With a lot of tweaking to the sprite properties and the 2D box collider I get the sprite placed on the "ground" , however I have all kind of "off" values for the position (5, 3.42) for example) and "-1.49129, 0.085590" for the colliders offset. It just doesn't feel "right".

Should I invest time in getting the padding removed so that the actual edge of the dino is touching the edge of the image (so using the image which has the highest / most left / most right dino for reference to use for all other images)? Or is there something else I need to do?

My question is: what is to correct workflow in order to use these images? Or is this spriteset just garbage?

https://redd.it/1cwa55d
@r_Unity3D

Читать полностью…

r/Unity3D

Hello German-speaking Unity Developers, After years of having problems exchanging ideas with other game developers, I created a Discord server, first of all in my native language, German. The server is intended to be a place to exchange ideas, projects and help others.

About me, I'm Julian a 19 year old unity engine game developer. I've been developing games for 4 years now. The majority of my games are designed for mobile devices. So far I have already published 2 games which I regularly provide with updates.

I would be interested to know what you think of such a server?

Der Server: German Game Devs

https://redd.it/1cvvr5y
@r_Unity3D

Читать полностью…

r/Unity3D

Shadows of Taumiel, my second game, an adventure-horror, will be released on 22th of May on Steam, next wednesday.

https://redd.it/1cvwlqo
@r_Unity3D

Читать полностью…

r/Unity3D

What do y'all think about this StackLand-inspried jam game we made in 48h ?

https://redd.it/1cvrdgz
@r_Unity3D

Читать полностью…

r/Unity3D

Newer to unity, requesting some help

Hello,

I apologize for the trouble, I know there are a lot of newer threads asking for help, but this has been more or less a last resort for me.


I am currently doing the 20 game challenge, I am interested in game design and wanted to start learning the ropes. So far, I've been able to chug along using Youtube tutorials and the Unity API. So far, I've made a (albeit crude) clone of both Pong and Flappy Bird.

Now, however, I've gotten stuck on the second set of games, specifically Breakout. I more or less understand the concepts involving instantiating a ball and giving it a directional velocity, however the issue arises when y == 0 (x could also be an issue, but I think it's a lot less likely). When the ball bounces, it's velocity is inverted and it bounces directly up and down without its x coordinate changing.

I've tried using tutorials, there was a similar problem with Pong that I used a tutorial to solve, the issue being that I really don't understand how to solve the issue, each tutorial that I've found has more or less said "Do this" and not explained how it works, so trying to make changes for it to work is very hard (Also, it doesn't teach me how to solve the problem...just to look up code and copy it). Another issue arises with how many different ways the problem is solved, each tutorial does it differently (and some on different versions of unity).

If anyone has the time, could you help? Additionally (if possible) are there any good resources to start learning the basics of unity? So far I've been using youtube tutorials (as I said), with similar issues of not really being taught anything, and have been trying to use Unity learn. However, it is difficult to sort through the lessons on Unity Learn that will help me, and the ones that are out of date or tailored to 3D games, when I am starting with 2D to keep things simpler.

Thank you for any and all help.

https://redd.it/1cvszsc
@r_Unity3D

Читать полностью…

r/Unity3D

I started a [My Little Pony x Zelda] fangame and it turned into my college graduation project: Unicorn Training. Now it's 9+ dungeons long and fully released on iOS, Android, and Itch.io!

https://redd.it/1cwyuqj
@r_Unity3D

Читать полностью…

r/Unity3D

Does anyone know why you can't see the letters and it looks so blurry?
https://redd.it/1cwvt6y
@r_Unity3D

Читать полностью…

r/Unity3D

Advanced 2D Face rig! All with the magic of UV maps! Tutorial down in the comments...
https://redd.it/1cwg24n
@r_Unity3D

Читать полностью…

r/Unity3D

With or without post-processing ?
https://redd.it/1cwkimv
@r_Unity3D

Читать полностью…

r/Unity3D

a few different solutions i have found for a puzzle in my game

https://redd.it/1cwedqg
@r_Unity3D

Читать полностью…

r/Unity3D

Hi, i tried in this video to explain what is dot product, how to use it, and some of its uses cases in games and graphics, hope you find this useful
https://youtu.be/_0wWcwX3ls8?si=nadlq-FcenKZjJCG

https://redd.it/1cwdrmn
@r_Unity3D

Читать полностью…

r/Unity3D

unity fungus saves system problem

hi I been using unity fungus to create a visual novel, and I created a main menu so that players can change the volume and is a fun visual before playing the game, but sadly when ever I save and then press loud with fungus's save system it keeps sending me back to the main menu, I wanted to know if there's some way I could keep the main menu without conflicting with the save system, also I don't know how to code sadly.

https://redd.it/1cwhjhv
@r_Unity3D

Читать полностью…

r/Unity3D

Make a customer go to an empty position in ui

hi i need help to make the customer find a empty position and go there using leanTween, this is how i want it to look like

step 1 : customer search for a position

step 2 : it check if the position was filled or not,

step 3 : if it's filled then go to another empty position that was empty

the position was a child gameobject, the parent name was Customer Spawn

after searching on the internet i can't find any solution

here's the code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;


public class Customer : MonoBehaviour, IDropHandler
{
    private Transform Slot;
    private customerQueue queue;


    void Start()
    {
        // Find the Slot GameObject by name
        Slot = GameObject.Find("Slot").transform;


        if (Slot == null)
        {
            Debug.LogError("Slot GameObject not found!");
        }


        LeanTween.moveX(gameObject, Slot.position.x, 5).setEaseInOutSine();
    }
   
}

here's the code for the position :

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CustomerSlots : MonoBehaviour
{
    private bool filled = false; // Indicates whether the slot is filled or not

    public void MarkAsFilled()
    {
        filled = true;
    }

    public bool IsFilled()
    {
        return filled;
    }
}


https://redd.it/1cwdbti
@r_Unity3D

Читать полностью…

r/Unity3D

Make a mirror in unity 2d

How to make mirror in unity 2d urp?

thx for any help :)

https://redd.it/1cwcnff
@r_Unity3D

Читать полностью…

r/Unity3D

Sample Texture 2D went crazy when I put transparent image. The left one was just a ring with transparent background. The right one is a stick figure with white background. Both uses same color channel. The ring one got rectangle blocking. What seems to be the problem here?
https://redd.it/1cwaiq6
@r_Unity3D

Читать полностью…

r/Unity3D

Does anyone know of any free tools similar to Sonarcloud / Sonarcube that work for unity2d projects?

Does anyone know of any free tools similar to Sonarcloud / Sonarcube that work for unity2d projects?

I recently returned to an older project, and there is so much refactoring I need to do to get the C# code more readable and easier to extend.

At my day job, we use Sonarcloud for our enterprise software to ensure we have no security vulnerabilities, cognitive overload and code smells. However this is a paid tool.

Does unity have something similar?

https://redd.it/1cw8s1n
@r_Unity3D

Читать полностью…

r/Unity3D

A project I finished a couple months ago that I’m pretty proud of

https://redd.it/1cw19hp
@r_Unity3D

Читать полностью…

r/Unity3D

Need help with inventory for my 2d unity game

I cannot make a inventory for the life of me, I want to be able to equip diffrent spells and wepons by putting them in a specific slot. I also want to be able to move items in the inventory, along with to diffrent things like a chest for example.

https://redd.it/1cvzmkf
@r_Unity3D

Читать полностью…

r/Unity3D

Hello! We're eager to earn the trust of future players, so we've hand-drawn a world with unique heroes who have their own life stories, skills, and a path full of dangers and enemies. Are you ready to step into the unknown?
https://www.youtube.com/watch?v=slbLN1gPQVI

https://redd.it/1cvwtm2
@r_Unity3D

Читать полностью…

r/Unity3D

Beginner game dev asking for help with a function

I have been trying to make a 2d movement system all on my own, though I figured how to make the character move in 8 directions I can't get the sprinting ability to work, it's meant to give a speed boost temporarily but for some reason it does not increase the speed. The code is as follows:

public float moveSpeed = 50f, sprinttime = 1.5f, sprintboost = 500f;

public Rigidbody2D bird;

public int sprintcooldown = 5;

public bool sprinting = false;

void Update()

{

Vector2 movement = Vector2.zero;



if (Input.GetKey(KeyCode.W))

{

movement += Vector2.up;

}

if (Input.GetKey(KeyCode.S))

{

movement += Vector2.down;

}

if (Input.GetKey(KeyCode.A))

{

movement += Vector2.left;

}

if (Input.GetKey(KeyCode.D))

{

movement += Vector2.right;

}



movement = movement.normalized;



bird.velocity = movement * moveSpeed;



if (Input.GetKeyDown(KeyCode.Space) && !sprinting)

{

sprint();

Invoke("sprintstop", sprinttime);

}

}



public void sprint()

{

sprinting = true;

bird.velocity = bird.velocity * sprintboost;

Debug.Log("Sprint start");

}



void sprintstop()

{

sprinting = false;

bird.velocity = bird.velocity * moveSpeed;

Debug.Log("Sprint end");

}

https://redd.it/1cvtidj
@r_Unity3D

Читать полностью…
Subscribe to a channel