I'm making a game where the player can either buy cash ( with tokens ) or complete task for it. I want to make it a int variable hud to show the amount of cash a player has but when i made it the green output stays the same. this is because the way i connected it with the "get current balance" chip. Im wondering how else can i go about doing this.
#Int variable hud to show currency and int
1 messages · Page 1 of 1 (latest)
send pictures of your circuits
please lmk im still trying to understand this all
bet
-
Set hud element enabled only needs to be enable ONCE so use a player joined event and a if player is local
-
Why do you need a Kash int variable? makes not sense just wire Total balance to the Set game hud element value
-
If you configure the game hud element constant you can set the label so you don’t need a set game hud element label
Change the stuff out and answer the questions i asked @wet elk
You also don’t need a if player is local after the 30hz because the 30hz is running locally for each player
-
would the cash just continue to update without the 30hz
-
im not sure im just confused tbh
-
no
-
okay
once ur don’t send a pic
😭
wdym
This is the main issue im having I want to be able to buy cash but it also be in a int variable if that makes sense
currency’s are there own int variable
you don’t need and int variable
ohhhhhh im tripping
idk what i was thinking mb thanks for the help
I’m following this because I have a similar issue.
I’m not using currency chips but I am using a Cloud Int Variable.
When my players do something that will alter their specific Cloud Int value, it alters the values for every player in the room. Is this something to do with Networking? (Authority/local)
is your int varible synced im pretty sure that makes it for every player
Lmk if you still having this issue
No it’s set up as a Cloud Variable. So it will only hold data from a players perspective.
In a nutshell, I’m working to make it so that the Cloud Variable (int) is a players credit value, which they use to open doors, unlock things etc.
Problem I have is that when (for example) player A activates a circuit that charges them, all other players in the room are charged too. I’m assuming it’s a networking issue.
im not sure ask this guy he knows what hes talking abt im sure lol
^
Want me to join you?
I’m online rn?
this is completly unrelated but its just a small issue so i didnt think i needed to make a whole new thingy but
im trying to remove a object from the players hand but there is multiple of the objects im wondering if its possible if i can remove the object based on the tag it has and how to do it
Give each weapon a different tag
Gun0
Gun1
Gun2
example ⬆️
oh i see
Use rec room object get first with tag
would i have to make multiple of the remove object from players
Are you trying to give every player there own set of weapons?
explain what your doing in ur map
i have like 3 guns and im trying to make is so when the player dies the gun is unequiped but i rlly dont want to connect each gun ( present and in the future ) to a unequip lol
Oh you don’t need a tag for that
oh fr
Use the get equipped objects chip
And the is valid chip
Wire Dominant hand and Off hand to separate Is valid chips
Wire the Is valid chips into seperate If chips
is this correct
If it’s true then remove the object from the player on death
good
If you need specific chip names lmk
send a pic when ur done
mb for late responds
bet 1 moment
is it possible that i can connect that to a "if less then or equal to" with the value 0
Y?
i use that to respawn the player and set the health back to 100
lmk if any of this stuff is not the bestt way to do it i can send a pic but its rlly messy
chilllll 😭😭
prob cant even tell whats happening cause how cooked the pic is but yea i pretty much had it so if a int ( health ) reaches 0 it teleports them to spawn and unequips there gun
I know
u used the rclman tutorial
yea yea
i got it now thx
good
why do you want to have a bar to show currency? (my opinion) Put a check button using textcv2 to show your financial state and more. I'm trying help not to hate on your idea just that it would use less brain power. I not big brain.
Use HUD.
Start a new/clean thread for this. Post a picture of your circuit.