Ascended M.U.G.E.N
March 29, 2024, 03:28:52 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: WE ARE MOVING!

http://www.ascendedmugen.com/index.php?action=forum

This is the new forum and server. All downloads are now hosted here and everything far as post count can be recoverd in the proper topic.
 
  Home Help Links Staff List Login Register  

Kujo's Random Tutorials

Pages: [1]
  Print  
Author Topic: Kujo's Random Tutorials  (Read 3478 times)
0 Members and 1 Guest are viewing this topic.
Kujo
Guest
« on: August 27, 2007, 02:36:28 am »

Table of Contents
1.0 Moving your Powerbar
1.1 Hiding your Powerbar
1.2 Making the Round Display for Longer
~Portrait Stuff
1.3 Moving the Portrait
1.4 Hiding the Portrait

1.0 Moving your Powerbar
Like with the slot adding simple, but hardly known. I'm using Doorhenge's GGX Lifebars in this example. Now, open the fight.def you're editing with Notepad and find:
[Powerbar]
;Player 1
p1.pos=84,227
p1.bg1.spr = 11,4
p1.bg1.layerno=2
p1.front.anim=14
p1.front.layerno=2
p1.bg1.layerno=2
p1.range.x = -48,48
p1.counter.offset = -71,6
p1.counter.font = 1,0,0
p1.counter.layerno = 2

;Player 2
p2.pos=236,227
p2.bg1.spr = 11,5
p2.bg1.layerno=2
p2.front.anim=14
p2.front.offset = -1,0
p2.front.facing = -1
p2.front.layerno=2
p2.range.x = 48,-48
p2.counter.offset = 71,6
p2.counter.font = 1,0,0
p2.counter.layerno = 2

Like usual you numbers will vary. Only edit the lines I marked in teal unless you want a big mess. Only edit the second number. So if I'm moving the Player 1 Powerbars I want to edit the 227, and not the 84. The same goes for the Player 2 Powerbars. The 84,227 is where the axis is. The Powerbars are 84 pixels to the right, and 227 pixels down in the example. Now I'm going to move them from the bottom to the top. I'll mark what I edited in teal:
[Powerbar]
;Player 1
p1.pos=84,28
p1.bg1.spr = 11,4
p1.bg1.layerno=2
p1.front.anim=14
p1.front.layerno=2
p1.bg1.layerno=2
p1.range.x = -48,48
p1.counter.offset = -71,6
p1.counter.font = 1,0,0
p1.counter.layerno = 2

;Player 2
p2.pos=236,28
p2.bg1.spr = 11,5
p2.bg1.layerno=2
p2.front.anim=14
p2.front.offset = -1,0
p2.front.facing = -1
p2.front.layerno=2
p2.range.x = 48,-48
p2.counter.offset = 71,6
p2.counter.font = 1,0,0
p2.counter.layerno = 2

As you can tell I kept the first number the same, and the second number equal on both sides. I did this so they won't be touching each other or one high, and the other low. You can move them pretty much anywhere. You do have to experiment with the numbers to find a position you like.

1.1 Hiding your Powerbars
I'm using the same example as I did in the other Lifebar stuff. I call those my screw around Lifebars.

Okay, to hide your Powerbars you open the fight.def of the Lifebar you want to edit with Notepad and find:
[Powerbar]
;Player 1
p1.pos=84,28
p1.bg1.spr = 11,4
p1.bg1.layerno=2
p1.front.anim=14
p1.front.layerno=2
p1.bg1.layerno=2
p1.range.x = -48,48
p1.counter.offset = -71,6
p1.counter.font = 1,0,0
p1.counter.layerno = 2

;Player 2
p2.pos=236,28
p2.bg1.spr = 11,5
p2.bg1.layerno=2
p2.front.anim=14
p2.front.offset = -1,0
p2.front.facing = -1
p2.front.layerno=2
p2.range.x = 48,-48
p2.counter.offset = 71,6
p2.counter.font = 1,0,0
p2.counter.layerno = 2

Change the numbers I marked in teal to -1,-1. That'lll be a non-existant sprite, so nothing will show up. I'm just going to put the edited lines as a reference since I know if I don't the tutorial will explode again...
p1.bg1.spr = -1,-1
p2.bg1.spr = -1,-1

Now, if you stop here you'll still see how full it is. That's no good...maybe, depends on the person. Anyway, add a semicolin to the following section:
; tensionbar
[Begin Action 14]
14,0, 0,0, 1
14,1, 0,0, 1
14,2, 0,0, 1
yadayada...

To get:
; tensionbar
;[Begin Action 14]
14,0, 0,0, 1
14,1, 0,0, 1
14,2, 0,0, 1
yadayada

Tensionbar may be changed to Powerbar or something else. You may have to experiment.

1.2 Making the Round Display for Longer
Now, open your Lifebars with Notepad and find:
;"Round 1" Animation
[Begin Action 2000]
2000,0,0,0,1
2000,1,0,0,1
2000,2,0,0,1
2000,3,0,0,1
2000,4,0,0,1
2000,5,0,0,1
2000,6,0,0,1
2000,7,0,0,1
2000,8,0,0,1
2000,9,0,0,1
2000,10,0,0,1
2000,11,0,0,1
........

The numbers I tealed are the length of time that specific part of the animation lasts for. You're going to have to muck around to see what line is the Round Animation. You increase that number to make it display for longer, and decreas the number to make it display for a shorter amount of time. You'll have to edit for each of the rounds but I think you get the idea. Too bad there isn't a way to know what is what without all the mucking around.

1.3 Moving the Small Portrait
This is pretty much like moving Powerbars. I haven't worked it all out yet but after you get some the rest should come easy...I hope. I may update this part a little later. I just wanted to do it before I forgot.

Open the fight.def you want to edit and find:
[Face]
;Player 1
p1.pos = 42,23
p1.face.spr = 9000,0
p1.face.scale = .57,.57
p1.face.facing = 1
;Player 2
p2.pos = 275,23
p2.face.spr = 9000,0
p2.face.scale = .58,.58
p2.face.facing = -1

Your numbers are going to vary. I'm using the same GGX Lifebars as I did in the Powerbar moving section. Unlike the Powerbar moving you'll probably want to edit both the numbers in teal to suit your needs. For the p2.pos = try to increase or decrease the numbers by the same amount you did with p1.pos =. So if I make p1.pos = 42,23 into 0,13 I'd want p2.pos =  to be p2.pos = 317, 13 or so because p2.pos is on the opposite side of p1.pos which is why I added instead of subtracted. You will have to do this for every mode the Lifebars go into.

So Ctrl+F p1.pos to find everything. p2.pos should be right underneath that. This takes a lot of experimenting. I haven't got p2.pos to be perfect yet but it's the same basic thing just with different numbers. The first number is horizontal, and the second is vertical. So 0,13 means the portrait's axis is 0 pixels to the right, and 13 pixels down. You do need a little patience for this. Here's what my example would look like:
[Face]
;Player 1
p1.pos = 0,13
p1.face.spr = 9000,0
p1.face.scale = .57,.57
p1.face.facing = 1
;Player 2
p2.pos = 317,13
p2.face.spr = 9000,0
p2.face.scale = .58,.58
p2.face.facing = -1

I have tweaked since then, and found 319,13 to be perfect but I can't figure out the math

behind that. But that's why you experiment. Do the opposite of what you did to p1.pos, and

add/subtract 2? I dunno, straightforward but confusing.
http://i3.photobucket.com/albums/y74/Sigfrid1229/before.png
http://i3.photobucket.com/albums/y74/Sigfrid1229/after.png

1.4 Making it so a Lifebar Doesn't Display a sprite
So you may have your Powerbars the way you want them, but you don't like the small portraits showing. You can easily fix that. So just follow this simple section.
Open the fight.def of the Lifebars you're using and find:
[Face]
;Player 1
p1.pos    = 15,9
p1.face.spr = 9000,0

Change 9000,0 to something non-existant like -1,-1. You will have to do this at many points in the fight.def. I just don't want to list them all. But 9000,0 should only appear in the face section so if you Ctrl+F it you should be fine. Press Ctrl+S to save your changes.
« Last Edit: September 05, 2007, 04:57:32 pm by Kujo » Report Spam   Logged


Pages: [1]
  Print  
 
Jump to:  

Bookmark this site! | Upgrade This Forum
Free SMF Hosting - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy