Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] when the ball touches the ground
#1
ok this is for my DBZ mod. i have created a character called freiza were he has this move were he summons out a big ball and throws it onto the ground. the problem is that you can see that ball go all the way through the ground and it looks weird. now i want to no if its possible to stop the ball going through the ground or do i have to just time the dvx and dvy at the correct time.
[Image: variaboss.png]
SUPER B*NER: :3
Reply
Thanks given by:
#2
Imagine this char throws a weapon.
If this weapon touches the ground it won't go further.

Now just change the normal weapon sprites into the ball sprites.
Reply
Thanks given by:
#3
no i mean its an attack, i mean like ball like state: 3000
[Image: variaboss.png]
SUPER B*NER: :3
Reply
Thanks given by:
#4
Fine

You can apply state: 3000 in weapon datas too.
Reply
Thanks given by:
#5
you still don't understand, i made a ball with state: 3006 its in the air then goes to the ground the probelm is it instead of hitting then ground the disappearing, it just keeps flying down is their a way to stop this?
[Image: variaboss.png]
SUPER B*NER: :3
Reply
Thanks given by:
#6
I fully understood this. From the first place on.

I already wrote a solution actually:
Make the ball not a t3 object but rather a weapon, so that LF2 automatically recognizes when this weapon touches the ground. Then you can use the on ground-frames as explosion or whatsoever.
Reply
Thanks given by:
#7
It's the type of the object: Type:3 (balls) don't touch ground, they fly through always (had same problem as i tried to design an ice hail XD).

You should change it to type:2 or something in the data.txt, that would be a heavy-object (like a stone), which of course hits ground.
My Creations: (Click to View)

Return (String) System.getNewsOfTheDay();
Barely active, expect slow responses. If at all.


Greetz,
Alblaka
Reply
Thanks given by:
#8
ok i am confused, do i create a ball or a weapon?
[Image: variaboss.png]
SUPER B*NER: :3
Reply
Thanks given by:
#9
You could try to change the "type" in the data.txt

Turn it to "2" and we will see what happens... in best case it will impact on ground then, in worst case it will screw up the ball XD
My Creations: (Click to View)

Return (String) System.getNewsOfTheDay();
Barely active, expect slow responses. If at all.


Greetz,
Alblaka
Reply
Thanks given by:
#10
create a weapon(type: 1) with the same frames as your currently ball has... and then add frame: 60... that frame is activated when your object hits the ground...

it isn't difficult
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)