AngelAC
New member
hello guys!, i hope you are fine, i have some trouble trying to make my character grab a box and then throw it, like the barrels in double dragon, so that means he should walk with the box and the throw it when decided. I also want to do the same with enemies (like super mario bros 2 hehe), but the box obiously can make more damage and can only be used three times. The other problem is that i don't know how to make the "grabbed" box fit right in top of the character, i've tried to change the offset but it doesn't fix at all, and afer a little time if i turn back, the box dissapears :'(. I've loaded the box like an enemy, this is the code:
And this is what my character can do:
I have been reading the manual but i can't get with the right solution, i would greatly appreciate your help. Thank you,
Code:
name bigbox
type enemy
health 34
nomove 1 1
candamage enemy
anim fall
offset 21 34
bbox 20 32 0 0
frame Data/Chars/Misc/bigbox.gif
anim grabbed
offset 25 82
bbox 20 32 0 0
frame Data/Chars/Misc/bigbox.gif
anim idle
offset 21 34
bbox 0 0 40 33
frame Data/Chars/Misc/bigbox.gif
anim pain
offset 21 34
bbox 0 0 40 33
frame Data/Chars/Misc/bigbox.gif
anim rise
offset 21 34
bbox 0 0 40 33
frame Data/Chars/Misc/bigbox.gif
And this is what my character can do:
Code:
name ODST
type player
health 100
gfxshadow 1
speed 10
grabturn 1
grabdistance 36
anim grab
offset 17 47
bbox 9 7 22 41
frame Data/Chars/ODST/grab.png
anim grabwalk
loop 1
offset 12 53
bbox 4 9 19 41
frame Data/Chars/ODST/grab_walk1.gif
offset 11 52
frame Data/Chars/ODST/grab_walk2.gif
bbox 9 9 17 37
offset 16 53
frame Data/Chars/ODST/grab_walk3.gif
offset 17 54
frame Data/Chars/ODST/grab_walk4.gif
bbox 11 9 19 37
offset 19 53
frame Data/Chars/ODST/grab_walk5.gif
bbox 11 8 15 38
offset 17 53
frame Data/Chars/ODST/grab_walk6.gif
bbox 6 10 18 36
offset 13 54
frame Data/Chars/ODST/grab_walk7.gif
offset 14 54
frame Data/Chars/ODST/grab_walk8.gif
I have been reading the manual but i can't get with the right solution, i would greatly appreciate your help. Thank you,