question

stanchion avatar image
stanchion asked

Ambient Multiplayer Deaths

In Mario Maker for example, you can see where other players have died.

Another example in Dark Souls, there is a similar thing

How would you do this in PlayFab?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

You can try to use Title Data to store the coordinate value where players died. You can use server API SetTitleData to set the value via Cloud Script when your client trigs a death event. And you can use Client API GetTitleData to get the coordinate values, then display them as text or graphic.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Shane Berezowski avatar image Shane Berezowski commented ·

@Sarah Zhang I was reading through the Title Data section of the API and it discusses that updates to these values can be slower because they are cached and then processed.

This might be fairly specific, but let's say for example the level of interest is a 10x10 grid and you want to capture deaths at XY for this grid. Does it cause any issues / race conditions when multiple players are dying in the same XY coordinate close together in timing, and trying to increment the death count at the same location when these values are cached and awaiting processing?

Also, are there any issues on Playfab's side seeing a handful of the same Title Data entries being updated frequently by players? Like will it get flagged or throttled?

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang Shane Berezowski commented ·

Please see this thread for a more detailed discussion on this topic:

https://community.playfab.com/questions/22293/often-updated-content-lists-job-for-the-title-data.html

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.