Logo
  • Features
  • Educators
  • What's New
  • Blog
  • Showcase
  • About us
  • Contact
Try it now!
Using Regular Expression vi To Create "Information Packets" In One Line Of Text
💡

Using Regular Expression vi To Create "Information Packets" In One Line Of Text

✍️
This best practice is created by Outrunfungus43 from Gandi IDE community.
image

Outrunfungus43 Cocrea: https://cocrea.world/@Outrunfungus43

Outrunfungus43 Dulst: https://dulst.com/morphapeed

In this tutorial, I will show you how to turn a line of text into multiple entries on a list with 2 blocks and 2 operators and will show you some uses for it in the following msg. (Requires Regular expression vi)

Text To List Entries

This requires 1 list to save the data however you may use one to broadcast it too. To split the data, the split block checks the first entry in clone list and splits it into multiple entries each time it detects the "/" sign (Requires text block from the extension).

Also, you don’t need to worry about clearing the list where the multiple entries are added as it replaces them each time. However, I do advise you remove the first entry in "clone list" after activating the split block, if your doing something similar to me.

image
image

Text To Clones

Now, if you have made a game where there are many clones being made at once, you may run into the problem of clones going to the wrong position as you may be using a variable to set clone x and y (as I used to do). Now, you can solve this by making a block (runs without screen refresh) that automatically splits the clone list and sets all the clones to the right position, size, and costume instantaneously.

image
image
image
image

Now, here is an example of this exact system being used in Astral Avalanche: Limbo (Remake/Sequel). There are two towers shooting fire and ice bullets that both spawn particles at the same time. From this system, non of the ice particles spawn at the fire ones and vice versa. This is also used to spawn the bullets and the opponents that are walking now.

💡
If you have any questions or suggestions, you can find us in the discord channel: https://discord.gg/U3nyveCvRa
Logo

Designed by 2ndR with love

Discord