Rainys
Rainys
CC#
Created by Rainys on 8/27/2023 in #help
❔ is there an asynchronous Console.ReadLine() replacement?
basically just a console app (you can use Console.WriteLine() and Console.ReadLine()) for a video game server i'm making, i use a library which does all the heavy lifting so i only do stuff like check if someone types in port then i switch the port etc.
8 replies
CC#
Created by Rainys on 8/27/2023 in #help
❔ is there an asynchronous Console.ReadLine() replacement?
alright
8 replies
CC#
Created by Rainys on 8/27/2023 in #help
❔ is there an asynchronous Console.ReadLine() replacement?
doesn't that write a line? i want it to read lines, basically what Console.ReadLine() does perfectly, but asynchronous
8 replies
CC#
Created by Florian Voß on 3/14/2023 in #help
❔ Align items Sprites in Unity
because it should be centered, unless like the image is not centered or something
17 replies
CC#
Created by Florian Voß on 3/14/2023 in #help
❔ Align items Sprites in Unity
also make sure the anchor is centered
17 replies
CC#
Created by Florian Voß on 3/14/2023 in #help
❔ Align items Sprites in Unity
yeah, also make sure to set the font allignment to center, both the vertical and horizontal one, and also what was the guy trying to tell you is that: all canvas' children have a Rect Transform, you have a Transform, and for UI Rect Transforms are a life saver mainly because you can anchor/allign things easily
17 replies
CC#
Created by Rainys on 3/14/2023 in #help
❔ How to limit while loop updates per second amount
well, thanks, you answered my question :D
139 replies
CC#
Created by Rainys on 3/14/2023 in #help
❔ How to limit while loop updates per second amount
so this just executes the code inside the while loop 50 times every second?
139 replies
CC#
Created by Rainys on 3/14/2023 in #help
❔ How to limit while loop updates per second amount
okay, so as i understand i should look into PeriodicTimer?
139 replies
CC#
Created by Rainys on 3/14/2023 in #help
❔ How to limit while loop updates per second amount
i'm using a server system/framework or whatever you want to call it called Riptide. and all it basically does is allows the programmer to send "messages" between the clients and the server. However what should happen with the "messages" is all the programmer's work, but for now my question is what is the best way to implement the fixed update function thing in C#
139 replies
CC#
Created by Rainys on 3/14/2023 in #help
❔ How to limit while loop updates per second amount
game (client) is made in unity, and the server is a standalone .NET console application, so to answer your question: no
139 replies
CC#
Created by Rainys on 3/14/2023 in #help
❔ How to limit while loop updates per second amount
windows is okay, but both would be nice i guess.
139 replies
CC#
Created by Rainys on 3/14/2023 in #help
❔ How to limit while loop updates per second amount
yeah, all it needs to do is send position data between the client and the server (the client is made in unity, so that's why i'm not that experienced in standalone application C# programming :D)
139 replies