Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
I know I can just replace game fales , but I have no idea how to make them animated. Is this even possible?
ee & eeforums gibs me depression
Offline
It Is possible and pretty easy (for me)
Can't help you tho. I am on the phone
Offline
Never fiddled around with custom clients myself, though I can give you a piece of advice:
Don't make a custom client jk
Try and look at how aura's being animated and hope they're not just programmatically turning the image (which would be a terrible method anyway).
Offline
Okay I'll try to help
1)You need to extend the smileys image with all frames of animation (remember: smileys are 26x26)
2) replace new image with old one
3) find Player.cs in scripts
4) find a function set frame() (or something like that)
Set frame controls which smiley player is wearing
5) create a global variable currentframe = 1
6) in tick() you should loop through all frames
if(currentframe >= %number of total frames%)
currentframe = 0;
else currentframe++;
if(current smiley id == %smiley Id you wish to be animated%)
frame = offset + 26 * currentframe;
* frame - current smiley
* offset - where your animation frames begin
* 26 - smiley size
* currentframe - offset in animation frames
It seems hard, but when you do it - it's easy
Offline
Try and look at how aura's being animated and hope they're not just programmatically turning the image (which would be a terrible method anyway).
Wow you really never did mess around with editing the swf... pinwheel is a single frame and it uses rotateBitmapData which is why it looks like utter crap.
Gosha stop stealin' my damn code god dammit, that is quite exactly what I did in a certain public client which shall go unnamed for reasons i dont want forum ban kek multiple times.
Offline
Gosha stop stealin' my damn code god dammit, that is quite exactly what I did in a certain public client which shall go unnamed for reasons i dont want forum ban kek multiple times.
I guess because it works?
It is not code stealing, I wrote everything by myself here
If Is like saying that EE steals from EBE
Idea is the same, code is nearly the same
Btw, it's not your code. All animated blocks use this. (coins, ice blocks etc)
Offline
All animated blocks use this. (coins, ice blocks etc)
Wait what?? Thats quite a bad way to do it for large scale things... especially iirc ice block frames arent global, so each block would need this
Also, compacted:
currentframe = (currentframe + 1) % frameCount
Offline
Wait what?? Thats quite a bad way to do it for large scale things... especially iirc ice block frames arent global, so each block would need this
I am sure there is something like this going on
I need to look up the code but , sadly, I can do it only in August
You can look it up yourself in world.cs
Offline
destroyer123 wrote:Wait what?? Thats quite a bad way to do it for large scale things... especially iirc ice block frames arent global, so each block would need this
I am sure there is something like this going on
I need to look up the code but , sadly, I can do it only in August
You can look it up yourself in world.cs
I would too, but I'm on a different computer so cant
Postpone this discussion for a few hours? XD
Offline
[ Started around 1732701282.5789 - Generated in 0.040 seconds, 12 queries executed - Memory usage: 1.5 MiB (Peak: 1.66 MiB) ]