Need Help With Game Maker

Started by
4 comments, last by kruncher 11 years, 11 months ago
I am making a side scrolling platformer, as mentioned in a previous post of mine. I decided to go with game maker because its simple and easy to use for noobs like me. But i ran into a problem. In my game, pushing the "H" key will change the main player object into another object (like a power up). So I did Key Press "H" and then "change instance into object.." It works fine except for the fact that the level stops scrolling once in change instances. How do I fix this?

Thanks in advance.
Advertisement
You'll have more luck on the Game Maker forums.http://gmc.yoyogames.com
Post in the Novice and Intermediate Q&A forum
I haven't used this software in a while but I believe that you might be able to do this using the following directly after you change your object.

view_object[0] = "myobject";

Let me know if this works for you :)
Rotorz Limited (http://www.rotorz.com)

Check out our latest game Munchy Bunny!
Editor Tool: Rotorz Tile System (for Unity 3D)
What do you mean by "using the following directly after you change your object"?

Im sorry Im a noob :D
I think kruncher is right. Add the code

view_object[0] = "myobject";

just after you "change instance into object".


What do you mean by "using the following directly after you change your object"?

It means: If you have used the "Change Instance" action then add the action "Execute a piece of code" after it and use the above code, replacing "myobject" with your new object's name.
Yes that's right, exactly what Bibek Dahal said.
Rotorz Limited (http://www.rotorz.com)

Check out our latest game Munchy Bunny!
Editor Tool: Rotorz Tile System (for Unity 3D)

This topic is closed to new replies.

Advertisement