Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Belohlavek

There is not much to show, no console errors, no weltmeister errors, entity tile showing OK in weltmeister and yet not working nor showing up in the actual game. Please check my code here:

http://pastebin.com/HbQ1jGEk

Thanks for reading.

1 decade ago by jerev

Hey,

                        this.addAnim('someFish', .21, [0,1,2,3,4]);
                        this.addAnim('noFish', 0, [5]);

.addAnim( name, frameTime, sequence, [stop] )

Using 0 as frameTime does not mean its going to show the frame endless, it means it's not going to show it at all.
So if you just want it to stay on that frame, set it to any value >0, like 0.1

                        this.addAnim('noFish', 0.1, [5]);

1 decade ago by Belohlavek

Thanks that was it, btw, it shouldn't display the noFish animation since (check variable) it has 25 fish available. What's going on?

**EDIT: Via console.log(var) i've got to know that the fish variable is undefined, meaning that I can't get it into the function, how can I do this?

**EDIT: never mind, got it by doing var = this.var;

1 decade ago by jerev

Indeed, this.fishAvailable
Page 1 of 1
« first « previous next › last »