Facebook Messenger Application / Graphics

Started by Scaremonger, October 09, 2018, 20:55:36

Previous topic - Next topic

Scaremonger

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...

Derron

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

Scaremonger