Open tobbi opened 8 years ago
There's nothing like custom object in SuperTux.
or maybe add an object coin and set a custom sprite?
Actually there is a "custom object" it's just called a "scripted object" instead. So if changing the sprite of a coin does not work, then it should still be possible to achieve the same effect with some effort.
---- On Thu, 03 Dec 2015 23:58:42 -1000 notifications@github.com wrote ----or maybe add an object coin and set a custom sprite?
—Reply to this email directly or view it on GitHub.
The current SuperTux state: Scripted object: Is scriptable, but hasn't any collision-script. Coin: Has the right effect, but has no collect-script.
We need to add more script triggers. For example, I think it'd be great to have a script run when a bad guy dies. Or when a timer runs down.
On 4 Dec 2015, at 20:35, Hume2 notifications@github.com wrote:
The current SuperTux satte: Scripted object: Is scriptable, but hasn't any collision-script. Coin: Has the right effect, but has no collect-script.
— Reply to this email directly or view it on GitHub.
Dead-scripts now work for all badguys. And when a timer runs down, doesn't already wait(time) do it?
How do you create a dead script? By timer I mean a timer object which the player can see
On 5 Dec 2015, at 06:46, Hume2 notifications@github.com wrote:
Dead-scripts now work for all badguys. And when a timer runs down, doesn't already wait(time) do it?
— Reply to this email directly or view it on GitHub.
Deadscript is deadscript= or similar. leveltime is (leveltime 300), but I am not sure about a timer to a script.
For example: (snowball (dead-script "sector.Tux.add_coins(10)") (direction "left") (x 2368) (y 320) )
This should work.
Okay, great, I will add this to the flex lay editor
On 6 Dec 2015, at 06:16, Hume2 notifications@github.com wrote:
For example: (snowball (dead-script "sector.Tux.add_coins(10)") (direction "left") (x 2368) (y 320) )
— Reply to this email directly or view it on GitHub.
I fixed all the sound paths, sounds play correctly now (I didn't bother changing the 0.3.5 index, only the 0.4.0 index is changed)