Mewdoom Posted September 20, 2016 Hello guys, I have the idea to create a circle of fire around the player. I think use A_SpawnItemEx like: A_SpawnItemEx("FireSprite", 64, 0, 0, 0, 0, 0, 0) and repeat it for all degree angle like A_SpawnItemEx("FireSprite", 64, 0, 0, 0, 0, 0, 1) A_SpawnItemEx("FireSprite", 64, 0, 0, 0, 0, 0, 2) A_SpawnItemEx("FireSprite", 64, 0, 0, 0, 0, 0, 3) A_SpawnItemEx("FireSprite", 64, 0, 0, 0, 0, 0, 4) ... there is a way to use a for loop and just increment the last args by 1 until 360 ? 0 Share this post Link to post
Blue Shadow Posted September 21, 2016 Yes, it is possible. Here is a working example:ACTOR Thing { var int user_angle; States { Spawn: SOUL A 6 Bright NoDelay A_SpawnItemEx("ArchvileFire", 64, 0, 0, 0, 0, 0, user_angle) SOUL A 0 A_SetUserVar("user_angle", user_angle + 10) SOUL A 0 A_JumpIf(user_angle < 360, "Spawn") Goto Stay Stay: SOUL A -1 Bright Stop } }See user variables. 0 Share this post Link to post