Create a single character that changes to a different emoji rapidly

I've spent all day just trying to figure out how to phrase this, so please help me if I need to edit the post.

I'm trying to create some text in c# that I want to output in the console, but I want that text to be emojis (✊, ✌️, 🖐), but to replace each other every few miliseconds in a single character, if that makes sense. I've gotten help and managed to create that effect with plain text:

string first = "ABC";
for (int i = 0; i < 20; i++)
  Console.Write(first[i % 3] + "\r");

Then I tried to replace those characters with some unicode "codes" \uD83D\uDC4A (don't know what to call them). I then ran the program, and the output in the console was just "�". I really don't know how to phrase this post, so please feel free to suggest edits and ask questions about it

1 answer

  • answered 2022-05-04 10:18 Christof Wollenhaupt

    This question has been answered in another questions of yours:

    How do I use unicode in this?

    Instead of accessing a character as you do in your code, you have to parse out the characters (plural) that make up each emoji and then display each element in the list.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum