A_D_M_E_R_A_L Posted April 16, 2017 I kinda want to do the thing when the screen flashes certain color when you pickup a key. Anyone knows how to do that? 0 Share this post Link to post
0 scifista42 Posted April 16, 2017 You might do this with INVENTORY.PickupFlash, but I'm not sure if the PickupFlash actor can have customizable color. If not, define a Powerup with short duration and a specific display color, and a CustomInventory item that looks like the key and gives both the key and the powerup to the player, and place this custom inventory item into the map instead of the key itself. 0 Share this post Link to post
0 A_D_M_E_R_A_L Posted April 16, 2017 4 hours ago, scifista42 said: You might do this with INVENTORY.PickupFlash, but I'm not sure if the PickupFlash actor can have customizable color. If not, define a Powerup with short duration and a specific display color, and a CustomInventory item that looks like the key and gives both the key and the powerup to the player, and place this custom inventory item into the map instead of the key itself. An example maybe? 0 Share this post Link to post
0 scifista42 Posted April 16, 2017 (edited) DECORATE code: actor DummyKeyPowerup : Powerup { Powerup.Duration 20 Powerup.Color "FF 00 00", 0.5 } actor DummyKeyPickup : CustomInventory { +INVENTORY.NOSCREENFLASH Inventory.PickupMessage "You got the red keycard." States { Spawn: RKEY A -1 stop Pickup: TNT1 A 0 A_GiveInventory("RedCard") TNT1 A 0 A_GiveInventory("DummyKeyPowerup") stop } } If you put DummyKeyPickup into your map, then upon being picked up, it will flash red and give the red keycard to the player. Edited April 16, 2017 by scifista42 0 Share this post Link to post
0 A_D_M_E_R_A_L Posted April 17, 2017 (edited) 13 hours ago, scifista42 said: DECORATE code: actor DummyKeyPowerup : Powerup { Powerup.Duration 20 Powerup.Color "FF 00 00", 0.5 } actor DummyKeyPickup : CustomInventory { +INVENTORY.NOSCREENFLASH Inventory.PickupMessage "You got the red keycard." States { Spawn: RKEY A -1 stop Pickup: TNT1 A 0 A_GiveInventory("RedCard") TNT1 A 0 A_GiveInventory("DummyKeyPowerup") stop } } If you put DummyKeyPickup into your map, then upon being picked up, it will flash red and give the red keycard to the player. I want this to replace regular keys EDIT: Ok nvm, I got it to work. Edited April 17, 2017 by A_D_M_E_R_A_L 0 Share this post Link to post
I kinda want to do the thing when the screen flashes certain color when you pickup a key. Anyone knows how to do that?
Share this post
Link to post