rexrainbow / phaser3-rex-notes

Notes of phaser3 engine
MIT License
1.18k stars 260 forks source link

dynamic set card face #376

Closed pkl-kirito closed 10 months ago

pkl-kirito commented 11 months ago

Hi, I like your plugin, I try to use perspective-card. But how to change card face to new {key, frame} before card.flip.flipRight();

rexrainbow commented 11 months ago

Feature added : Can change texture by card.frontFace.setTexture(key, frame) method. Demo NPM package will be upgraded at end of this month.

pkl-kirito commented 11 months ago

Thanks will try it out ! I have another question, is there a card perspective like put card on top of table ?

rexrainbow commented 11 months ago

Could you post an image or a video to explain this card perspective more detail?

pkl-kirito commented 11 months ago

image @rexrainbow something like this

rexrainbow commented 11 months ago

This requirement is not supported.

You can rotateX by card.rotationX = 10, but flipping behavior under this setting looks strange.

rexrainbow commented 11 months ago

A workaround solution is to render game scene on the other scene using perspective-image game object. Demo.