Irrelon / ige

The Isogenic Game Engine
523 stars 139 forks source link

Bloody beginner question #62

Closed Doidel closed 12 years ago

Doidel commented 12 years ago

Hello I've recently started working with the engine, and of course completely fail with the simplest of tasks :) Now, let's get to it: I extend an IgeEntity (all fine so far) and want it to use tweening (btw, I wasn't able to find the tweens like easing('outElastic') etc. in the docs.. where are they?). I copied the tweening from a demo, and now want it to be used in this object while being streamed. Let me show some code: http://jsfiddle.net/a2SUd/ I guessed that I have to have the animation in the "tick" function to have it streamed, but that's probably wrong... And even more wrong is the place where I have the tweening code. Could you give me a hint how to proceed in order to apply the tweening to my custom IgeEntity?

Thanks in advance! Doidel

Doidel commented 12 years ago

Hmm well I can make it run without an error, having the Tween executed by the server. Problem is that nothing gets streamed, eventhough I have streamMode(1) with my creep object..

Doidel commented 12 years ago

OK I GOT IT terribly sorry I forgot to disable Chrome's caching and I always got the old cache displayed -.- (shame on me)

Have a nice Sunday

emorling commented 12 years ago

Welcome Doidel! Does anyone know how to refresh the page AND the cache in one key-strike? Nearly all other browsers can do it....

Irrelon commented 12 years ago

@emorling Yup, in Chrome, open your JS console (developer console) then click the cog icon bottom right, then select Disable Cache tick box.

Cache will only be disabled if you refresh with the JS console open. Otherwise Chrome will behave normally with normal caching.

emorling commented 12 years ago

Ah, I see. Thanks. :)

goldfire commented 12 years ago

You can also press Command + Shift + R in Chrome to reload without cache (Ctrl + Shift + R in Windows).