playMaker

Author Topic: Limit Text Chats online  (Read 386 times)

andyandyandy

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 50
Limit Text Chats online
« on: August 29, 2020, 11:49:21 PM »
There's chat in my game and I want to limit it to lets say 10 chats in the box, I'm trying to do something like find child or renaming each created text game object and delete the last 10th text but I'm having trouble trying to build it.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6495
    • jinxtergames
Re: Limit Text Chats online
« Reply #1 on: August 30, 2020, 06:27:35 AM »
Hi.
Probably best to use array maker

Add a String then check size if greater than 10 remove the array on index 0

Here's a video on array maker :

Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!

andyandyandy

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 50
Re: Limit Text Chats online
« Reply #2 on: August 30, 2020, 05:08:29 PM »
thank you so much!