New actor type for every single new moving platform pattern [Pretty much Solved]

WHYYYYYLucas

  • Posts: 13
So I made this event for moving platforms:



It works for a single pattern, but I want to customize the boundaries (y positions) in which the platforms move in for different scenes and parts of scenes too, otherwise they would all just move in the same pattern, crushing variety. It seems like a crushing amount of work to create a new actor, manually re-write all of the events just so I can change the first 2 y-coordinates (currently 400 and 100). Is there a way so that I can just reuse the same event without making dozens of duplicates, and simply edit the two y coordinate? Or is there something I'm doing wrong / a more convenient way to do this?

Also, I was wondering if there was a way to copy this event into a behavior without redoing all the attachables (or whatever you call those things that you put together to make up an event)? I'm not sure if copying and pasting the actual code somewhere else works, but I don't want to try it until I get confirmation from a stencyl pro due to being afraid of corrupting my work. Thanks for putting up with my noobishness guys!

Oh, also, some of my doors are glitchy for some reason. Most of them work fine, but some teleport the player to the next scene but at a place much further up the Y axis than it was supposed to be, still on point with the designated X axis though. I also noticed that happens every other time I test scene or test game (eg. I load the game the first time, it spawns you incorrectly including when you die, I close it and load the game the second time, it loads correctly including when you die). Any ideas on what this could be caused by?

« Last Edit: April 10, 2015, 11:21:33 pm by WHYYYYYLucas »

Osman2001

  • Posts: 19
You can edit the platforms in the scene editor by telling witch actor you want to edit. You don't need duplicates

WHYYYYYLucas

  • Posts: 13
I know, but I don't want ALL the moving platforms to have the exact same path. Currently, it's set to move between y=400 and y=100, which I only want such movement for one specific moving platform in one specific scene.

It's also possible I'm just confused what you're telling me. I'm assuming that you're telling me that I should click on the same actor in my palette and place it multiple times therefore not needing duplicates, correct? If not, could you explain how to do what you speak of?  ^  ^ Cool

Osman2001

  • Posts: 19
What I mean is that you can make a platform actor with no code. Place as much as you want of it in the scene. Use logic to set up the platforms the way you want in the scene editor by selecting the actor when needed.

jas7229

  • Posts: 28
If you wanted to place actors in scene with the palette but with different paths depending on where you placed them, you could probably set a local variable for the x/y position for each platform when created, and then base x/y movement constraint values off of that reference value by adding or subtracting to it (instead of fixing them at 400 and 100 exactly, have them based upon the position of the platforms themselves). This would mean the same range or movement for each platform though, just located around different spots. I haven't tested it myself, but I think something along those lines could help point you in one direction towards tackling your problem? (:

WHYYYYYLucas

  • Posts: 13
Thanks guys... but now I somehow managed to do something that completely broke my platform movement (now it simply freefalls and goes off the screen), and I have no idea how to undo. I fail. Oh well, might as well start from square one tomorrow. Do you guys recommend anything from stencylworks to make moving platforms? I saw this "Platform Movement Pack" with the author of Stencyl on stencylworks in a youtube video posted 3 years ago, and it seemed to be pretty nifty... but I can't find it when I search for it in StencylWorks. o-o

Sort of off-topic, but would anyone be willing to join me in the join.me application to share my screen and potentially solve my game's problems in about 8-12 hours from now ? 

WHYYYYYLucas

  • Posts: 13
Uh... nevermind, I fixed the moving platform problem by myself. I still need to figure out how to get their patterns unique though. Also, this door glitch is actually becoming the bigger problem now. jas229, could you give me a step by step process of setting a local variable and all of that jazz if possible? I'm new, lol. If not it's okay.

« Last Edit: April 10, 2015, 11:18:09 pm by WHYYYYYLucas »

WHYYYYYLucas

  • Posts: 13
Uh... nevermind... AGAIN. I just realized that you can merely duplicate actors and that's pretty much as easy as doing what I was asking you people. Sorry peeps! I guess I'll make a topic for my door issue, because no matter what I do, I can't seem to solve that. But if anyone knows the solution to that issue, please tell me!!