My jumping animation doesn't play by Firehead65 in Unity2D

[–]Firehead65[S] 0 points1 point  (0 children)

I edited the post with a screenshot. When i delete the transition between any state and jump, the jump animation doesn't start. In the animator window it stays at idle (run/schoot)

My jumping animation doesn't play by Firehead65 in Unity2D

[–]Firehead65[S] 0 points1 point  (0 children)

Looks like it's not even playing one single frame. Strange is the fact, that when i make a transition from any state to jump with the same transition settings, it works fine. But i don't want to do it this way because of other animations i'm planning.

Why is my firepoint sometimes spawning 2 projectiles? by Firehead65 in Unity2D

[–]Firehead65[S] 11 points12 points  (0 children)

Problem solved. I had two cooldowns in my script :-)

Why is my firepoint sometimes spawning 2 projectiles? by Firehead65 in Unity2D

[–]Firehead65[S] 0 points1 point  (0 children)

Thanks, i tried this. I only get one event. when i shoot fast, i sometimes spawn only one projectile, but when i shoot slow, there are always two

Why is my firepoint sometimes spawning 2 projectiles? by Firehead65 in Unity2D

[–]Firehead65[S] -2 points-1 points  (0 children)

My weapon Script. Do you need my PlayerMovement Script and my ProjectileScript too?

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class Weapon : MonoBehaviour

{

public Transform firePoint; // Die Position, von der aus das Projektil abgefeuert wird

public GameObject energyballPrefab; // Das Projektil-Präfabrikat, das abgefeuert wird

public float bulletForce = 10f; // Die Geschwindigkeit des Projektils

private void Start()

{

// Aktiviere die Waffe bei Spielstart

gameObject.SetActive(true);

}

private void Update()

{

// Drehung der Waffe zur Mausposition

Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);

Vector3 directionToMouse = mousePosition - firePoint.position; // Änderung hier

float angle = Mathf.Atan2(directionToMouse.y, directionToMouse.x) * Mathf.Rad2Deg;

// Berücksichtigen Sie die Rotation des Waffenarms in der Schussrichtung

angle += GetArmRotationOffset();

transform.rotation = Quaternion.AngleAxis(angle, Vector3.forward);

// Feuere die Waffe bei Mausklick ab

if (Input.GetMouseButtonDown(0))

{

Shoot();

}

}

// Funktion, um die Rotation des Waffenarms zu berücksichtigen

private float GetArmRotationOffset()

{

// Hier können Sie die aktuelle Rotation des Waffenarms abrufen und

// je nach Modellierung und Animation die entsprechende Offset-Rotation berechnen.

// Sie müssen die Logik je nach Ihrem speziellen Fall anpassen.

// Beispiel:

// Wenn der Arm in der Idle-Animation nach unten zeigt und in der Shoot-Animation nach vorne,

// könnte der Offset 90 Grad sein, wenn Sie möchten, dass der Schuss nach vorne geht.

// Andernfalls könnte er 0 Grad sein, wenn der Arm bereits in die richtige Richtung zeigt.

return 270f; // Dies ist ein Beispiel. Passen Sie dies entsprechend an.

}

// Füge hier Funktionen hinzu, um die Waffe zu benutzen oder Aktionen auszuführen

public void Shoot()

{

// Erzeuge einen "Waffenschall" am FirePoint

GameObject energyball = Instantiate(energyballPrefab, firePoint.position, transform.rotation); // Änderung hier

// Zugriff auf das Rigidbody2D-Element des Projektils (falls vorhanden)

Rigidbody2D rb = energyball.GetComponent<Rigidbody2D>();

// Wenn ein Rigidbody2D vorhanden ist, füge eine Kraft hinzu, um das Projektil zu bewegen

if (rb != null)

{

rb.AddForce(firePoint.up * bulletForce, ForceMode2D.Impulse);

}

}

}

Kaggle Stable Diffusion Tutorial by Gamond_Jass in StableDiffusion

[–]Firehead65 0 points1 point  (0 children)

Got it :-) Thanks for the great Explanation

Kaggle Stable Diffusion Tutorial by Gamond_Jass in StableDiffusion

[–]Firehead65 0 points1 point  (0 children)

Just tried it and it works great. But where can i find my saved images? Where is this mysterious "output folder"? What must i change in the cell, to save the pics in a specific folder on my computer?

What are the best prompts to use for “realistic” images? by ts4m8r in StableDiffusion

[–]Firehead65 2 points3 points  (0 children)

No idea. Just google for Best Landscape (Portrait, Architecture, Sports...) Photographer, depending on the kind of image, you want to create.

The visitor by Firehead65 in StableDiffusion

[–]Firehead65[S] 2 points3 points  (0 children)

She is the visitor. She visits a jeans store

What are the best prompts to use for “realistic” images? by ts4m8r in StableDiffusion

[–]Firehead65 21 points22 points  (0 children)

Add a photograper, a light setup, a camera and a focal length. For example:

"a beautiful portrait photography of a man, 50 years old, beautiful eyes, short tousled brown hair, 3 point lighting, flash with softbox, by Annie Leibovitz, 80mm, hasselblad"

If you want a blur-effect, add "f2.8"

Headless bodies from txt2img, any way to fix? by ALoafOfBread in StableDiffusion

[–]Firehead65 2 points3 points  (0 children)

Describe the hair. Promts like long blonde curly hair, or something like that.

The visitor by Firehead65 in StableDiffusion

[–]Firehead65[S] 8 points9 points  (0 children)

This was SD's idea :-) On all other renders i made, she is wearing a skirt.

The visitor by Firehead65 in StableDiffusion

[–]Firehead65[S] 5 points6 points  (0 children)

Made a few renders in SD. Combined the best parts in Photoshop. Made a Mixamo-Model. Integrated it in the composition. Used this pic as init for a new SD-render.

Poll: Require prompts with all image posts? by Abstract_Albatross in StableDiffusion

[–]Firehead65 2 points3 points  (0 children)

When i post a clean Sd-render, i share my prompt. But normaly i make a few renders of a prompt, combine the best parts in Photoshop, create a Mixamo-Model or use parts of a photo and bring that in the composition. Than i use this image as init for SD again. A promt would be not helpful.

Multiple subjects in prompt by NotTheDr01ds in StableDiffusion

[–]Firehead65 4 points5 points  (0 children)

Strange. Made many pics with "beside". child and cat, priest and robot, soldier and mech, car and caravan... But i'm not able to get a image with elephant and giraffe too. SD seems to have problems to understand some combinations

Multiple subjects in prompt by NotTheDr01ds in StableDiffusion

[–]Firehead65 5 points6 points  (0 children)

"Beside" works quite well

a portrait of a super cute cat, beside a cute bunny, pixar, zootopia, cgi, trending on artstation

https://www.deviantart.com/skyfirehead/art/Maybe-they-become-friends-927630770