Report as inappropriate.
Hey,
That´s not really a scenario – I have a question on how to code that and
I don´t know how to describe it without the scenario at the bottom:
You can see an Elephant that can jump on the blocks. I code it this way:
When the Elephant comes in contact with the block, the Elephant takes over
the Y-value of the object and subtracts 46 -> so the Elephant lands on the block.
The problem: if the Elephant jumps from the bottom against the block the Elephant
takes over the Y – value ; subtract 46 ; and the Elephant will stand on the block.
but when the Elephant jumps from the bottom against the block the animal has to
fall back …
the same problem with the side… if the Elephant jumps against the right side the
Elephant is not allowed to continue to go right – the same with the left side – when the
Elephant jumps against the left side the Elephant is not allowed to continue
to go left…
I hope you understand my problem =)
Can somebody help me?
Thank you=)
Want to leave a comment? You must first log in.
No votes yet.
2012/7/31
2012/7/31
2012/7/31
2012/8/7
2012/8/7
2012/8/7