Forums > C# >

[REL] Animated Console.WriteLine()


Aja

theboredman123

Posts: 410

Threads: 51

Joined: Apr, 2021

Reputation: 4

Posted

Yeah,

This code was not actually made by me but I think it's cool to release the code. The code is not that easy to guess for me tho, but anyways I found out the code.

 

public static void Print(string text, int speed = 40)
        {
            foreach (char c in text) // Looking for characters
            {
                Console.Write(c); // Type the characters
                System.Threading.Thread.Sleep(speed);
            }
            Console.WriteLine();
        }

Print("Example")

 

Pretty cool, right?

Exploits I use: Synapse XOxygen U

 

TERIHAX

Desire Development

Posts: 1331

Threads: 45

Joined: Jul, 2020

Reputation: 6

Replied

this is alright, you could do this if you want to change the speed: 

Print("ok", 100); // 100 is the speed in milliseconds

but im pretty sure oxygen u's bootstrapper has a better and more simpler version of it

Dsc: https://discord.com/users/883050084537860117

Use Desire Reborn: Hot UI, Many Features discord.io/DesireReborn

Rep Goal: +10

MaximusExploit

Maximus

Posts: 877

Threads: 33

Joined: Aug, 2020

Reputation: 16

Replied

dude nice youtube lol exact code lol

TERIHAX

Desire Development

Posts: 1331

Threads: 45

Joined: Jul, 2020

Reputation: 6

Replied

Dsc: https://discord.com/users/883050084537860117

Use Desire Reborn: Hot UI, Many Features discord.io/DesireReborn

Rep Goal: +10

Posts: 61

Threads: 0

Joined: Feb, 2021

Reputation: 6

Replied

        public static void print(string Text, int Speed = 30)
        {
            if (string.IsNullOrEmpty(Text))
                return;

            for (int i = 0; i < Text.Length; i++)
            {
                Console.Write(Text[i]);
                Thread.Sleep(Speed);
            }
        }

 

;)

C#/VB.NET/XAML Developer [Begginers]

Im Focusing On .Net Framework UI/GUI Development [Windows]

Currently Learning Java/Kotlin To Make Android Apps

Aja

theboredman123

Posts: 410

Threads: 51

Joined: Apr, 2021

Reputation: 4

Replied

@MaximusExploit bro i said it was not made by me wdym

Exploits I use: Synapse XOxygen U

 

MINISHXP

minishxp#9667

Posts: 1077

Threads: 34

Joined: Jan, 2021

Reputation: 5

Replied

i think you forgot that c#'s comments start with '//', but nice

The Tiananmen Square protests, known as the June Fourth Incident in China (Chinese六四事件pinyinliùsì shìjiàn)

deadlocust

dead lotion

vip

Posts: 1703

Threads: 55

Joined: Dec, 2020

Reputation: 26

Replied

@OrbitRBX just use foreach for this it's so much simpler :/

C#/C++ Developer [GITHUB]

Relatively incompetent

Posts: 61

Threads: 0

Joined: Feb, 2021

Reputation: 6

Replied

@deadlocust Yea thats good, 

 

I Just showing example for another method to do it, its prob works the same but :/

C#/VB.NET/XAML Developer [Begginers]

Im Focusing On .Net Framework UI/GUI Development [Windows]

Currently Learning Java/Kotlin To Make Android Apps

Shade_0122

Loli Protagonist

Posts: 1478

Threads: 98

Joined: Jun, 2020

Reputation: 19

Replied

errrr ok but bruh why for comments you use lua comments for c#? kek 

-- This is lua comments ok
print("kek")
// This is C# comments ok
Console.WriteLine("Kek");

My non skidded siggy

Aja

theboredman123

Posts: 410

Threads: 51

Joined: Apr, 2021

Reputation: 4

Replied

@Shade_0122 bro i didnt use the comments for a long time don't mind me lmfao

Exploits I use: Synapse XOxygen U

 

Beastsploits

Beast aka Kappaladi

Posts: 83

Threads: 22

Joined: Dec, 2019

Reputation: 3

Replied

Makes me sad because I would have done this line for line LMFAOO

Know c# and trying to expand my knowledge in it.


Rep Goal [1,2,3,4,5,6,7,8,9,10]


Rickrolled Talan2016 : https://cdn.discordapp.com/attachments/852018376368979974/852033650593497128/unknown.png

Aja

theboredman123

Posts: 410

Threads: 51

Joined: Apr, 2021

Reputation: 4

Replied

Exploits I use: Synapse XOxygen U