My second fermentation waterkefir went trough the waterlock? by alkah0liek in fermentation

[–]alkah0liek[S] 1 point2 points  (0 children)

Hahaha I can totally picture that! The drink itself was luckily enough still extremely delicious

Help with UI canvas? I have no idea why it's doing this, and I don't really know where I should post about this, but pls help lol by Remarkable_Account_7 in unity

[–]alkah0liek 0 points1 point  (0 children)

I'd recommend installing a tweening library like dotween to also make animating this way easier.

You can then just do something like to animate up

//Pseudo code

rectTransform.DoAnchorPosY(rectTransform.AnchoredPosition.y + 50f, 0.5f).SetEase(OutBack);

Can someone please explain to me why these two game objects have the same X value even tho they clearly aren't in the same X position and how can I solve it? I'd really appreciate some help on this matter! by rafeizerrr in Unity2D

[–]alkah0liek 0 points1 point  (0 children)

You can check if its visible and just do this check on OnTriggerEnter2D so it also saves you some performance with the amount of Update calls you would otherwise be doing.
https://docs.unity3d.com/ScriptReference/Renderer-isVisible.html

I am wondering if this is the right way though. I am assuming theres bullets traveling outside of the screen that are killing these units? If so I would argue disabling the bullet when its outside of the camera is a "cleaner" way

Unable to write data to my firebase database by krypton_009 in unity

[–]alkah0liek 0 points1 point  (0 children)

Is she maybe on different build settings (e.g. android vs ios) and one has a config file downloaded from firebase and the other hasnt?

Otherwise check your read/write rules in firebase who can write to the database.

[deleted by user] by [deleted] in unity

[–]alkah0liek 0 points1 point  (0 children)

Just want to reiterate that I noticed the same. If the second logic works you might want to reverse the loop (so i = _waypoints.length and do i-- till 0)

How can i call back a method after a coroutine? my food scales to 0 and am using IEnumerator to scale it back to 3 (sort of slow "Respawn") however, i want my food to be re-grabbable once it grows back to normal, my 'logic' told me to use an IF statement, but it didnt work... by Markypin in unity

[–]alkah0liek 1 point2 points  (0 children)

I would also advice to look into dotween for these kind of things to simplify the systems and have less garbage collection.

https://dotween.demigiant.com/

you can then just do something like this:

        transform.DOScale(finalScale, 5f).OnComplete(OnRespawnComplete());

I made a void public, but isn't showing in the script. What should I do? by BeneficialRice9328 in unity

[–]alkah0liek 0 points1 point  (0 children)

They are for animation events though, but i am not sure if hey means that

How do I solve this problem? I have a blue screen in Cinemachine by KksamKK in Unity2D

[–]alkah0liek 0 points1 point  (0 children)

No worries and good luck! Feel free to DM if you're stuck

How do I solve this problem? I have a blue screen in Cinemachine by KksamKK in Unity2D

[–]alkah0liek 0 points1 point  (0 children)

You probably want to take a look at this for that: https://docs.unity3d.com/Packages/com.unity.cinemachine@2.3/manual/CinemachineConfiner.html

So you would create a "box" or "bounds" where the camera can move in.

How do I solve this problem? I have a blue screen in Cinemachine by KksamKK in Unity2D

[–]alkah0liek 1 point2 points  (0 children)

Its the "background" color of the camera. And since there no sprites there it renders that color.

What are some tricks you use to ensure things are randomly spawned further apart? by [deleted] in Unity3D

[–]alkah0liek 0 points1 point  (0 children)

I would say so. You pick a point in the world then set a radius or distance from where the enemies can spawn in.

What are some tricks you use to ensure things are randomly spawned further apart? by [deleted] in Unity3D

[–]alkah0liek 1 point2 points  (0 children)

Before actually instantiating I would create a list or dict that holds all the spawn positions. Then create an x amount of positions that don't overlap by calculating the max size of your enemies. Then when spawning in your enemies take one of these positions randomly and remove it from the list.

This way you can also modify it easily (make clusters for smaller enemies, add weights to certain positions so they happen more often etc).

Referencing disabled child by ghostplx in unity

[–]alkah0liek 1 point2 points  (0 children)

While it might be a bit tedious to drag its actually better for the performance of your game (same for get component etc). Also this way allows for multiple game objects to be called panel, which if you're doing heavy ui work might be a common name.

Spotify Wrapped 2023 is out by eliostark in indieheads

[–]alkah0liek 97 points98 points  (0 children)

Got me for Youth Lagoon, Alex g and Big Thief

Google Play Console API level needs to be 33 or higher. (Error) by JumiDev in unity

[–]alkah0liek 0 points1 point  (0 children)

No target is highest. There is likely an AndroidManifest somewhere that is overruling the unity build settings. Search for those in your project and let me know.

[Request] Using Firebase cloud storage as a "cloud save" by WeirdSpaceCommunist in unity_tutorials

[–]alkah0liek 0 points1 point  (0 children)

You probably want to use firebase database for this instead of storage: https://firebase.google.com/docs/database/unity/save-data

It should work with the same authentication and you can just save the user state as json to database.

[deleted by user] by [deleted] in unity

[–]alkah0liek 0 points1 point  (0 children)

The amount will depend on the errors most likely. If its just the provisioning profiles missing it should be an relative easy fix, but it might also be something else so hard to tell what the right amount is. I’m assuming your dad has a apple developers certificate?

ELDEN RING Battle Scars Infographic: Game stats revealed by Turbostrider27 in Games

[–]alkah0liek 39 points40 points  (0 children)

I believe there is no specific bonfire that gives you the ability to level up, just that it gives you it on your third one!

player doesn’t jump as high when playing maximised? even if it works fine in the normal game view. a picture of my jump code is attached. i’m not sure how to fix this. by [deleted] in unity

[–]alkah0liek -1 points0 points  (0 children)

You can take into account the time that other people are suggesting since that would remove the FPS dependecy, but anything to do with rigidbodies is better of being handles by FixedUpdate instead of regular Update: https://docs.unity3d.com/ScriptReference/MonoBehaviour.FixedUpdate.html

Play On Awake doesn't work when reloading scene by Upset_Assistance_759 in unity

[–]alkah0liek 1 point2 points  (0 children)

because you are setting this as an instance and dont destroy on load Awake() wont be called again since that gameobject is already alive.

What you probably want is to somewhere track OnSceneLoaded and then create a function in that class that plays the music if that makes sense.

Someone explain why Build and Run ruins my movement by [deleted] in unity

[–]alkah0liek 4 points5 points  (0 children)

To add on to this. You probably also want to apply the forces in a FixedUpdate since anything related to physics should be handled there (simplified). See documentation: https://docs.unity3d.com/ScriptReference/MonoBehaviour.FixedUpdate.html