View Full Version : another problem with "platform gaming"

10-19-2001, 04:52 AM
okay I'd solved my previous problem about the "person" not being able to land.

Now when the person touches the side of the "block", I can't get him to stop moving to the side (i.e. he moves into the "block").

What should I do?

Code for "person":

onClipEvent (enterFrame) {
if (this.hitTest(_root["block"])) {
this._y += 0;
//here's the problem: what to put?
} else {
this._y += 4;

onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
if (Key.isDown(Key.LEFT)) {

10-19-2001, 06:05 AM
If 'blocl' is a variablet hat should be:
if (this.hitTest(_root[block])) {
review the Advanced Paths tutorial.