#For some reason I cant use .IsMe on the

1 messages · Page 1 of 1 (latest)

orchid walrus
#

Show me the code?

austere cobalt
#
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;

public class followMouse : MonoBehaviour
{
    private Avatar _avatar;
    Vector3 pos;
    public float speed = 1f;
   
    void Update()
    {
        pos = Input.mousePosition;
        transform.position = Camera.main.ScreenToWorldPoint(pos);
        transform.position = new Vector3(transform.position.x, transform.position.y, 0);

    }
}
#

I had avatar publiic but when I went to reference it in the Inspector after dragging it it wouldnt select

#

Is it because its the child of the avatar?

orchid walrus
#

Not sure. Why not just make a script to put on Player and control the mouse from there?

austere cobalt
#

So just get rid of the empty?

orchid walrus
#

I mean, sure. If Player is empty just make the cursor Player

austere cobalt
#

Okay

#

Im getting these for recommendations instead

#

maybe that wil help?

orchid walrus
#

.IsMe is what you want

austere cobalt
#

Yeah

#

Fuck

#

I got it

#

I didnt import Alteruna

orchid walrus
austere cobalt
#

IT WOKRED

#

YEs

#

Thank you I really appreciate it

#

that .Isme is really helpful

#

thank you so much

orchid walrus
#

np

austere cobalt
#

Now I just need to make it update 60FPS

#

Becuase its really choppy

#

FixedUpdate time

austere cobalt
#

Would you know any way to make it update at any faster than FixedUpdate?

orchid walrus
#

What is Refresh Rate set to on your TransformSynchronizable2D

#

Somewhere between 60 and 120 is probably ideal

austere cobalt
#

Ah it's that the problem okay

#

Well it's time for bed for me

#

I really appreciate your help