Author Topic: Facebook Messenger Application / Graphics  (Read 260 times)

Offline Scaremonger

  • Jr. Member
  • **
  • Posts: 68
    • ITSpeedway - Ramblings of a geek!
Facebook Messenger Application / Graphics
« on: October 09, 2018, 08:55:36 PM »
Hi,

I'm creating my first Facebook Messenger App and to test out it's capabilities I thought I'd try a simple Dice game!

I don't think I will actually release this bot; but if any of you guys have any advice on the best way to show the dice graphically, then I'm open to suggestions and would appreciate any input.

Currently I have a simple regex to extract a dice roll from {<count> "D" <faces>} (For example 3D6, 2D8 etc) which rolls the dice and currently returns a string:

3D6 = (D6=3, D6=1, D6=2) total 6

What I really would like is to display the dice as images inline with the text, but whatever works would be acceptable :)

It doesn't seem possible to create new Emoji's and displaying individual pictures seems to put them underneath each other.

Any idea?

Cheers,
Si...
Follow me at ITSpeedway.net.

Offline Derron

  • Hero Member
  • *****
  • Posts: 1511
Re: Facebook Messenger Application / Graphics
« Reply #1 on: October 09, 2018, 09:59:20 PM »
Without knowing much about Facebook Messenger App programming:

So you are able to include your own images? But if you add multiple, they got added beneath each other?

Why not create a image on the fly - this image contains all the images you want to put side-by-side). Similar to the counter scripts 20 years ago.


bye
Ron

Offline Scaremonger

  • Jr. Member
  • **
  • Posts: 68
    • ITSpeedway - Ramblings of a geek!
Re: Facebook Messenger Application / Graphics
« Reply #2 on: October 13, 2018, 04:27:15 PM »
Awesome. Good idea.

Thanks :)
Follow me at ITSpeedway.net.