Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mp recover
#1
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 ??
[Image: 333wc2q.png]

only the past knows how the future looks like ~ HW
Reply
Thanks given by:
#2
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 ;)
My Current Achievements! (Click to View)
Reply
Thanks given by:
#3
i haven´tn undestand anything sorry but im glad that you tried to help me
[Image: 333wc2q.png]

only the past knows how the future looks like ~ HW
Reply
Thanks given by:
#4
(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)
My Current Achievements! (Click to View)
Reply
Thanks given by:
#5
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...
Reply
Thanks given by:
#6
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 :)
My Current Achievements! (Click to View)
Reply
Thanks given by:
#7
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^^
Reply
Thanks given by:
#8
okay

first frame
bottle sommon
2 frame drinking
and 2 should have the next to ?????
[Image: 333wc2q.png]

only the past knows how the future looks like ~ HW
Reply
Thanks given by:
#9
Ofcourse not, sorry. Just thought he was 100% new ;)

Ontopic: frame 2 should have next: 999
My Current Achievements! (Click to View)
Reply
Thanks given by:
#10
no i can code a little bit
[Image: 333wc2q.png]

only the past knows how the future looks like ~ HW
Reply
Thanks given by:




Users browsing this thread: 18 Guest(s)