PDA

View Full Version : [Emulous 1.7] Screen shaking



Fire cape
June 24th, 2010, 20:08
Screen shaking

Description: Adding a screen shaking frame.
Assumed Knowledge: Copy & paste.
Tested Server: Emulous 1.7
Files/Classes modified: PlayerAssistant.
Difficulty: Easy.

Firstly,

Find your PlayerAssistant class.
This can ususaly be found by folowing this path.

server > model > players.

Add this into your PlayerAssistant class.

public void screenShake(int a, int b, int c1, int e) {
if(c.getOutStream() != null && c != null) {
c.getOutStream().createFrame(35);
c.flushOutStream();
c.getOutStream().writeByte(a);
c.getOutStream().writeByte(b);
c.getOutStream().writeByte(c1);
c.getOutStream().writeByte(e);
}
}

Useage:

Gentle shake:

screenShake(0, 0, 10, 10);

Violent shake:

screenShake(0, 10, 10, 10);

Mish
June 24th, 2010, 20:12
Can you show some media, please? like a video maybe.

Fire cape
June 24th, 2010, 20:13
Can you show some media, please? like a video maybe.

I will make a .gif tommorow.
Showing exactly what this does.

Mish
June 24th, 2010, 20:17
I will make a .gif tommorow.
Showing exactly what this does.

Okay thanks, i'm looking into this Emulous 1.7 source is it like Delta base or is it from scratch?

I D3stroy I
June 24th, 2010, 20:19
It's nothing like Delta ^

Nice release we already had this thought ;)

Fire cape
June 24th, 2010, 20:19
Okay thanks, i'm looking into this Emulous 1.7 source is it like Delta base or is it from scratch?

It is winterlove based.
It is very easy to use and it is quite stable.

Mish
June 24th, 2010, 20:25
It is winterlove based.
It is very easy to use and it is quite stable.

Thanks, is going to be my new source :) did you find out all this screen shaking and flashing arrows yourself?

Fire cape
June 24th, 2010, 20:26
Thanks, is going to be my new source :) did you find out all this screen shaking and flashing arrows yourself?

Yes.
I was working on a tutorial island sometime ago and I thought I would release the flashing icons.
And I have noticed that in most servers after completeing barrows the screen does not shake like it is supposed to so I decided to post it here.