Part 8 - Methane production
The
only thing the MakeStinky method does is add a new scent to the scent
collection. Because the Stinky Spawner timer will raise it's event 30
times per second, 30 scent objects will be created every second that
passes. Scent objects that are created here are being removed by the
DecayFarts method discussed earlier.
Copy and paste the code below into Form1
- Private Sub MakeStinky()
- mobjScents.Add(New Scent(mobjPlayer))
- End Sub