The Daily Click ::. Forums ::. Klik Coding Help ::. How to make an online PM system using Lacewing?

Post Reply  Post Oekaki 

Posted By Message


  06/11/2017 15:06:39
15th December, 2017 at 15/12/2017 22:17:48 -

I've been experimenting with online games for a while now and I would like to know how to make it so that you can send mail to other players and that they then can receive it. If it's possible I would also like to know how to make so that you can send mail to players that arn't even online. If you know how to do this, please post it in the comments.

Some say I'm a piece of slime pretending to be a human, some say I'm a human pretending to be a piece of slime.

My company's site :
My personal site :
My artwork site :




Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 33 Winner!Picture Me This Round 32 Winner!Santa!Box BlueAngelBellBox GreenBox OrangeBox PurpleBox Red
Box YellowCandleCandy CaneChristmas TreeDrumGingerbread HouseGingerbread ManHollyLight Oval BlueLight Oval Green
Light Oval OrangeLight Oval PurpleLight Oval RedLight Oval YellowOrnament GoldOrnament GreenOrnament RedReindeerRibbonSanta Boot
Santa GloveSanta HatSanta SockSantaSanta SkateSnowSnowmanStarTeddy Bear
19th December, 2017 at 19/12/2017 18:52:06 -

There are a couple of ways to pull this off, and most of them require having a dedicated server.

To do this with Lacewing you'll need to create a protocol for communicating this to your server.

If you're not worried about security then you can just have the server accept all messages on a particular channel and then attach the username it's being sent to as part of the message.

Something like:


Then parse it out and save it to a database or flat file, or just keep it in memory if you want.

Next when the user it's intended for connects they can send a message requesting all of their messages and your server can relay the messages back to them.

There is another way to do this however. It might be better not to use lacewing if you don't have to. You could setup a php script on a webhost and then have fusion make get requests to transmit and retrieve the messages. That's a little out of the scope of your question though.

Good Luck. <- My portfolio site for showing off projects and finished games. <- Old blog I don't keep up anymore <- My best mobile game, made with Fusion.

Post Reply



Worth A Click