• 15
• 15
• 11
• 9
• 10

Need Help With Game Maker

This topic is 2133 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

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?

Share on other sites
You'll have more luck on the Game Maker forums.http://gmc.yoyogames.com
Post in the Novice and Intermediate Q&A forum

Share on other sites
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

Share on other sites
What do you mean by "using the following directly after you change your object"?

Im sorry Im a noob Edited by jwoff25

Share on other sites
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. Edited by Bibek Dahal