Little Fighter Empire - Forums
Mp recover - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11)
+--- Thread: Mp recover (/showthread.php?tid=2725)

Pages: 1 2 3 4 5


Mp recover - Headstrong Warrior - 04-25-2009

i know i have to spawn an bottle and drink it but how can i do it

okay here i go

i want to make an move where my char recovers mp
i know : i have to spawn an bottle beer and drink it but how ?????ß

i don´t know it can somebody help me ??



RE: Mp recover - Pirate - 04-25-2009

An easy way(THEORY)

Since your new here (as I am. I'm newb with dc 2) this is a simple one:

Copy the frames for the ice-sword creation of freeze and change object id to a beer. Set the frame pictures correct, so it looks like the character actually finds the bottle(or spawn it). And optional: set the "Next: X" on the last frame to the characters drinking frame.

Tadaa. I hope ;)


RE: Mp recover - Headstrong Warrior - 04-25-2009

i haven´tn undestand anything sorry but im glad that you tried to help me


RE: Mp recover - Pirate - 04-25-2009

(04-25-2009, 08:54 PM)Headstrong Warrior Wrote:  i haven´tn undestand anything sorry but im glad that you tried to help me

I'll post you a code

Edit:

Creating the bottle (Click to View)
Optional: Make the character drink the beer (Click to View)



RE: Mp recover - TheNave - 04-25-2009

on the frame where you want to summon the bottle add this:
    DC-Code:
opoint:
      kind: 2  x: 42  y: 81  action: 20  dvx: 0  dvy: 0  oid: 123  facing: 0
   opoint_end:

little explanaiton:
opoint generaly summons objects(except it's in the first frame of a sequence, so make sure it's in the second or smthing)
kind: 2 makes the summoned object apear in your hand, if you try to use kind: 1 it would "fly" away like... firen's ball or smthing similar
x and y are the coordinates where the object should apear, not so important in this case
action: 20 makes the object start at frame 20
dvx and dvy would move the object forwards/backwards, upwards/downwards, not important in this case
oid is the id of the object you want to summon
facing is the direction of the summoned object, 0 = forwards, 1 = backwards, 10 = facing to the right always(if you use 20/21 you'll create 2 objects, 30/31 - 3 objects, 40/41 - 4, etc.)

so...
in the other frames you'd need state 17 to make the character "drink" the bottle...


RE: Mp recover - Pirate - 04-25-2009

That is great if you want to create whole new frames by yourself, but if he is completely new, he might want to start out with just modifying some existing ones :)


RE: Mp recover - TheNave - 04-25-2009

in tha other thread he said he's a fast-learned, so he should try to create frames by hisselfe... isn't really difficult atall^^


RE: Mp recover - Headstrong Warrior - 04-25-2009

okay

first frame
bottle sommon
2 frame drinking
and 2 should have the next to ?????


RE: Mp recover - Pirate - 04-25-2009

Ofcourse not, sorry. Just thought he was 100% new ;)

Ontopic: frame 2 should have next: 999


RE: Mp recover - Headstrong Warrior - 04-25-2009

no i can code a little bit