Aaaa...Heeeelp!..Before I die in tryings... :)

1MrPaul1

  • *
  • Posts: 1285
On base of "Run and Gun" game I want to make my own game where my hero will be able travel trough the levels across the rooms, main problem, How to make scene transitioning back, all behaviors give ability travel in one direction only and don't allow go back, because for all behaviors necessery to have player on scene design, and if use ready behaviors from Forge, when you go back, scene create 2 similar players....  please help find a solution, I have very poor knowledge of progaming, so I think, that can solve this task only with help of professional

here is my most succesful trying, but it too, make a lote of bugs... so don't judge strictly, this is my first steps

Greg

  • *
  • Posts: 1259
I'm not sure if I completely understand the issue you're facing -- but if you're going to use the "spawn actor in next scene" block, you have to make sure you didn't already add the player to the scene itself in the scene designer.


Hectate

  • *
  • Posts: 4643
I think the issue he's trying to address is to allow the player to travel both forward in the order of levels, as well as backwards. So, for example, he could walk to the end of a level and go to the next one, but then immediately turn around (resulting in a scene change again, of course) and find himself back in the previous level, at the other side.

The issue is that you'd need to create the actor via behaviors and have it change depending on which scene the player is going/coming from. Probably the behaviors from the RPG kit, since they can handle multiple scene change locations from within a single scene (such as entering buildings in a town). I've not used any of the kits so I can't speak with much certainty, but if I were to create my own behavior for this I have a good idea of how it would work - although custom to my needs, not necessarily yours.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Greg

  • *
  • Posts: 1259
I see -- in that case you can check out my "Scene Switcher" behavior on Forge.  You add as many Regions as you want to your scene, double click on them and then give them a name that indicates which scene to switch to, as well as the position to spawn your Actor in the next scene.

Sounds like what you're looking for.  The behavior itself describes how to set it up, but let me know if you have questions.

riotmedic

  • Posts: 17
I've also been looking for exactly this type of behavior! I was initially playing around with the SS actor in the Cutscene Pack (thank you Greg), but my additions were causing bug-ups. Thank you Greg, again! This makes my life so much easier.


1MrPaul1

  • *
  • Posts: 1285
Thank You Very Much!!!!
Scene Switcher was exactly what I need! Great behavior, so easy in use and automated, just perfect!
Now I have only one problem, how to create player when scene reloaded after death? And is it possible create actor in those coordinates where he is died? now I have just  beauty sky and no players if scene reloaded....
and one optional question, is it very hard to make like this, for example, I killed 5 from 10 monsters in the room1 than go to the room 2 and after that go back to the room 1, and have there only those 5 monsters that Ive not killed early, now as you understand, when I leave scene, all monsters appears.

« Last Edit: July 15, 2011, 03:20:38 am by 1MrPaul1 »