Jump to content
  • Advertisement
Sign in to follow this  
jwoff25

Need Help With Game Maker

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

If you intended to correct an error in the post then please contact us.

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?

Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
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 this post


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

Im sorry Im a noob :D Edited by jwoff25

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!