Possible shortcut problem?
Hello everyone. I'm 3 days new to mmf2 but I've gone though a few tutorials and familiarized myself with the program so I'm still getting to know it. While making a practice game, I've come across a problem I haven't been able to solve... It's been probably more than an hour and I give up so I'm posting here to see if any of you can help me. I couldn't find anything from searching the forums. Provided are also screenshots so I can better explain my problem.
So, I have my object called "player" which is of course the object the player controls. It moves on platform movement, and I've got a simple platform. Now for some reason whenever I go into the player's behavior to edit events, it seems to switch every event I had under my "player" column into another column called "player" but the icon is a small red ball.
I think this may be a shortcut issue as something popped up when I attempted to copy and paste some events a while ago regarding shortcuts and missing on the frame but I ignored it...
Now even if I re-adjust my events under the correct column, and play frame and it works, it will still change it back when I attempt to go back into the event editor in my player's behavior.
Here's some screenshots to help explain:
This is how it should look, without the red-balled "player" column:
http://img160.imageshack.us/img160/6883/ss1w.jpg
This is what it changes it to every time I go back into the behavior event editor:
http://img127.imageshack.us/i/ss2s.jpg/
Player on that frame:
http://img160.imageshack.us/i/ss3i.jpg/
Now that weird extra column isn't delete-able or hide-able. I'm not sure how this happened, but I'm hoping someone can help me out. Feel free to tell me if I didnt convey the problem well enough.
Thanks.
Re: Possible shortcut problem?
You should only use the object it's self in behaviors, otherwise they are prone to break. Events that aren't just for one object should go in the code for the entire frame.
Re: Possible shortcut problem?
You're probably right that it's caused by event shortcuts - it looks like it's somehow got itself into a strange state where there are two shortcuts to objects with the same name - one of them correctly going to the Player object and the other... somewhere else. Does the frame work as expected even when the actions are under that red-ball object?
If you post your MFA in the File Archive section of the forum then a developer might be able to take a look and see how it got into this state.
Here's a thought - if the actions are being interpreted as belonging to the first object in the list of objects when that event editor is loaded, try dragging the icon of the real Player object over so that it's to the left of the strange duplicate, and readjust the actions again. It's a guess, but you never know, it might help.
Re: Possible shortcut problem?
Thanks both of you for your help. Yeah it wasn't applying the events when it was under the red-ball player.
Somehow I fixed it though. Just as mysteriously as I broke it. I followed LB's advice by just copying and pasting the events in the player's behaviors out onto the main frame so it probably had something to do with that.