-
Changing movements
So im trying to have an object rolling around off objects and when it hits a spring it changes to a pinball movement and is sent into the air. This works great on the computer but as soon as i try it on the xcode simulator the simulator crashes once the ball hits the spring. so i tried to debug the issue and put a random active in place of the spring with only one purpose, to change the movement of my ball upon collision. and once again the simulator crashed. so im wondering, is there a reason this would work on the computer and not the simulator? and if i cant change the movement is there another way i can simulate a bounce in a 45 degree angle?
-
Interesting! Might be a glitch in movement switching in iOS, in which case we should bring it to CT's attention...
In the mean time, I'd recommend cloning your active object and giving it the pinball movement by default, then swapping the objects (destroy one, create the other in it's place). This was the old method before movement switching was available in MMF.
-
the only problem with doing that at this point is i have so many events for that first object already. also i wouldnt want to destroy the original because once it hit ground again i want the first movement to come back into effect.
is there another way to create a pinball movement with using a custom movement? im not the best with math so i wouldnt even know where to start for that.
-
Try making your first object invisible and setting it's X and Y to that of the pinball movement object, so it follows it around, once you're done with the pinball object, make it reappear again.
-
thank you very much. i used your idea and with a little work i was able to get it working even better than when it changed movements. and it also now works on the IOS simulator.
-
Great stuff! Glad to help!
-
AFAIK this crash was fixed in the latest version.
Did you update to B253?
-
no but i will go do that now.
-
Known bug. Like Andos said, it should have been fixed in the latest version. If not, the work around is to make the collision change an alterable value which controls the movement.
-
Wish you guys had gotten in here before me, harrysgames could have saved a lot of time just updating MMF... D'oh!