SuperTux / addons

10 stars 18 forks source link

Issues with Yeti's Revenge #6

Open tobbi opened 8 years ago

tobbi commented 8 years ago
Hume2 commented 8 years ago

There's nothing like custom object in SuperTux.

tobbi commented 8 years ago

or maybe add an object coin and set a custom sprite?

LMH0013 commented 8 years ago

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.

Hume2 commented 8 years ago

The current SuperTux state: Scripted object: Is scriptable, but hasn't any collision-script. Coin: Has the right effect, but has no collect-script.

Karkus476 commented 8 years ago

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.

Hume2 commented 8 years ago

Dead-scripts now work for all badguys. And when a timer runs down, doesn't already wait(time) do it?

Karkus476 commented 8 years ago

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.

brmbrmcar commented 8 years ago

Deadscript is deadscript= or similar. leveltime is (leveltime 300), but I am not sure about a timer to a script.

Hume2 commented 8 years ago

For example: (snowball (dead-script "sector.Tux.add_coins(10)") (direction "left") (x 2368) (y 320) )

This should work.

Karkus476 commented 8 years ago

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.

tobbi commented 8 years ago

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)