Rolling drum subject to platform/spawnframe

Minor

Member
hi, me again  :-[

I'm making a rolling drum spawned by another entity (a char). I followed this help by beastie (http://www.chronocrash.com/forum/index.php?topic=30.msg84) and everything is ok for the rolling drum entity. Works perfectly. (It rolls on platform)


Now I need a char which throw this rolling drum. I put this in the character attack:
anim attack1
rangea -216 300
range -29 300
subentity mzedf
spawnframe 2 23 23 55 0
loop 0
delay 10
offset 17 55
bbox 1 0 70 62
frame data/chars/mzed/sp0.png
offset 17 55
frame data/chars/mzed/sp1.png
offset 17 55
delay 150
frame data/chars/mzed/sp2.png


The problem is:
The character throws the barrel, but this one directly falls down (red on image below), and don't hit player, instead on rolling on platform (green arrow). how can i do that?

zFTsgsI.png
 
Is it because the drum doesn't have an attackbox in its fall anim when it falls off (for the red)? Or is it because platform is not set at the very end on the left where the green arrow is?
 
Beastie is referring to this:

  spawnframe 2 23 23 55 0

Setting z parameter like that will cause the barrel to be spawned 23 pixels away in z axis from the thrower. For 2D levels like this, it's simply means throwing outside playing field
Try setting that parameter to 0
 
Bloodbane said:
Beastie is referring to this:

  spawnframe 2 23 23 55 0

Setting z parameter like that will cause the barrel to be spawned 23 pixels away in z axis from the thrower. For 2D levels like this, it's simply means throwing outside playing field
Try setting that parameter to 0

Thank you very much guys!!!  :D  it was that.
A 2d mod is more rigorous and strict than i thought
 
Back
Top Bottom