Sign in to follow this  

Need Help With Game Maker

This topic is 2035 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
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.

[CODE]view_object[0] = "myobject";[/CODE]

Let me know if this works for you :)

Share this post


Link to post
Share on other sites
I think kruncher is right. Add the code
[CODE]
view_object[0] = "myobject";
[/CODE]
just after you "change instance into object".

[quote name='jwoff25' timestamp='1337447189' post='4941465']
What do you mean by "using the following directly after you change your object"?
[/quote]
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

This topic is 2035 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this