#2d characters on 3d plane which change sprites depending what angle ur viewing them

1 messages · Page 1 of 1 (latest)

humble sonnet
#

I'm new to roblox studio and I have been unlucky in finding a way to make this but just a note the sprites will be always looking at u(billboard gui)

wanton snow
#

basically have to check every frame i'm not aware of any exposed events which let you do this

humble sonnet
modest glacier
#

just use runservice.renderstepped

loud hornet
#

Could probably work w a mesh too

#

Don’t even need to script besides the face player part

#

I can help i through this if u don’t know how to do it

humble sonnet
humble sonnet
humble sonnet
humble sonnet
#

Is there a way to like delete these parts of the part

loud hornet
# humble sonnet I have NO idea what this is

It’s a way to constantly check something in the client, RunService does this for the client and the server, so you use that every time you want something to be checked frequently

humble sonnet
loud hornet
#

Just make the x or z axis like 0.1

humble sonnet
#

So when I get a part

humble sonnet
#

Sorry for the inconvenience I'm really new

fresh minnowBOT
#

studio** You are now Level 2! **studio

loud hornet
#

You gotta get a texture first, but there’s a plug in that does that very easily it’s called easy texture i think? Cant really check rn

#

Prob look for it or watch a yt tutorial about it

humble sonnet
loud hornet
#

Yes

humble sonnet
#

Ohhh

loud hornet
#

You can probably use a surfaceUI too and add an imagellabel to each surface of the part

humble sonnet
#

One last question

#

How would I change it depending where ur viewing it

humble sonnet
loud hornet
#

Is there leaf gonna be moving? Or just stationary and when you see it from the front you see the face and when you see it from the back you don’t

humble sonnet
loud hornet
#

It should be fine either way with surfaceGUI or textures

#

I’d make one on my end and send it to you but idk when I’ll be able to get on my computer

humble sonnet
#

Do I add u or will we continue here?

loud hornet
#

We can continue here in case someone else has the same question

humble sonnet
loud hornet
#

Np

loud hornet
#

@humble sonnet

#

Not sure if this is what you want, but it's a similar approach I'd say

#

Just change the images

humble sonnet
#

Thank u alot

humble sonnet
humble sonnet
#

@loud hornet okay so basically this is what i want but i want to keep looking at the players camera and change depending where ur viewing it.secondly when i loaded the game it was stuck to the floor is because i remove the back images?

wanton snow
humble sonnet
loud hornet
#

For the always looking at the players learn how you can do that through YouTube using CFrames

#

Can you clarify like give examples with screenshots or just explain further wdym with change depending on where you look at it

fresh minnowBOT
#

studio** You are now Level 3! **studio

humble sonnet
#

@loud hornet each where ur viwung it

loud hornet
humble sonnet
loud hornet
#

Ny question is isn’t that achieved already by just moving in the 3D space?

humble sonnet
#

Do you know Gary's mod

humble sonnet
#

That keep looking at u

#

And follow u

#

So basically I want to achieve that 2d effect but only rotate towards the player in z and x axis and not look at the player upward and it will change sprites depending where ur looking it at .for example the person playing as the leaf is looking forward and the guy next to him will look at the leaf and it will show the left sprite and if he's looking infront of the leaf it will the front leaf sprites @loud hornet

humble sonnet
#

@loud hornet I do NOT know any other way to explain it

wanton snow
humble sonnet
#

Here are sprites for the the other side

humble sonnet
wanton snow
humble sonnet
#

I did not command anything

wanton snow
#

I specifically said "busy"

#

I did not promise anything

humble sonnet
#

Aight have a nice day

humble sonnet
#

@loud hornet it's night for me so I cant respond to any questions thanks for helping

loud hornet
#

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")

local part = workspace:WaitForChild("ReferencePart")

local updateInterval = 0.2

while true do
task.wait(updateInterval)

local partCFrame = part.CFrame
local relativePos = partCFrame:PointToObjectSpace(hrp.Position)

local x = relativePos.X
local z = relativePos.Z

local direction

if math.abs(z) > math.abs(x) then
    if z > 0 then
        direction = "Front"
    else
        direction = "Back"
    end
else
    if x > 0 then
        direction = "Right"
    else
        direction = "Left"
    end
end

print(direction)

end

#

Hope that works for you

humble sonnet
#

But just on the safe side

#

Can u tell me what objects I need to add?

#

So like I don't mess up

#

@loud hornet ?

loud hornet
#

Add the part of the leaf

#

That's your reference part

humble sonnet
humble sonnet
#

This includes only 4 poses

loud hornet
#

Sorry mate, I'm busy, this type of stuff you'll have to figure out on your own

#

This is scripting help, if you need somoene to do this for you you'll need to make an ad in #💵︱hiring

humble sonnet
loud hornet
#

Good luck

humble sonnet