z / xonotic-sxb.pk3dir

Super Xonotic Brothers - SMB remade in Xonotic
5 stars 0 forks source link

As a player, I want coinblock mechanics to work more like Mario #22

Closed z closed 6 years ago

z commented 7 years ago

Currently it spawns a coin above the brush and a player has to collect it.

In Super Mario Bros, the coinblock spawns an image of a coin, and the value is applied to Mario's coin count.

MarioSMB commented 7 years ago

This is actually technically feasible, by making the item spawn invisible at the player's location ($activator.origin), and show a coin model on top fade away. We'd just need to make sure the item fades away or is always taken, so as to avoid invisible junk left on the map.

For the coin model, it could actually be the block's breaking effect, and we have a hit block model inside the block.

MarioSMB commented 6 years ago

Silly me - just make it a target_items instead of spawning an actual item.