Official Everybody Edits Forums

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.

#1 2017-07-21 15:29:29

Mieaz
Member
Joined: 2016-10-14
Posts: 499

[Request] Need an easy way to replace smileys with <animated> smileys

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

#2 2017-07-21 17:03:10, last edited by Gosha (2017-07-21 17:03:30)

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: [Request] Need an easy way to replace smileys with <animated> smileys

It Is possible and pretty easy (for me)
Can't help you tho. I am on the phone //forums.everybodyedits.com/img/smilies/sad

Offline

Wooted by:

#3 2017-07-22 01:13:16

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Request] Need an easy way to replace smileys with <animated> smileys

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

#4 2017-07-22 05:19:41

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: [Request] Need an easy way to replace smileys with <animated> smileys

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

Wooted by:

#5 2017-07-22 13:41:38

The 135 Guy
Member
From: England, UK
Joined: 2015-08-04
Posts: 64

Re: [Request] Need an easy way to replace smileys with <animated> smileys

den3107 wrote:

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.


BZ8z2l1.png
QUiiw7V.png

Offline

#6 2017-07-22 14:14:56

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: [Request] Need an easy way to replace smileys with <animated> smileys

The 135 Guy wrote:

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

Wooted by:

#7 2017-07-22 14:28:29, last edited by LukeM (2017-07-22 14:29:04)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: [Request] Need an easy way to replace smileys with <animated> smileys

Gosha wrote:

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 //forums.everybodyedits.com/img/smilies/tongue

Also, compacted:

currentframe = (currentframe + 1) % frameCount

Offline

Wooted by:

#8 2017-07-22 14:53:25

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: [Request] Need an easy way to replace smileys with <animated> smileys

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

Offline

#9 2017-07-22 15:02:58, last edited by LukeM (2017-07-22 15:17:04)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: [Request] Need an easy way to replace smileys with <animated> smileys

Gosha wrote:
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 //forums.everybodyedits.com/img/smilies/sad
Postpone this discussion for a few hours? XD

Offline

LukeM1500732178668960

Board footer

Powered by FluxBB

[ Started around 1732701121.0266 - Generated in 0.061 seconds, 13 queries executed - Memory usage: 1.5 MiB (Peak: 1.66 MiB) ]