ok so i made it where i can select a character but now what

i have two characters and i have it if you click one of them it will go to the next screen and show that character

but im stumped because i dont know how to make it where that chosen character will be the main character throughout the entire game

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Create a Real Attribute called Character.

    When you choose a character set the value to either 1 or 2, depending on your choice.

    Then in your game have something like:

    If Character = 1 spawn Character 1
    
    Otherwise spawn Character 2
    
  • im just stuck on after i get it to the next screen how do i get it to the scene after that

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Add a hidden 'control' actor to your screen and have it spawn the correct player using the rule I roughed in above...

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Here is a sample...

  • thank you also would i put control camera in the hidden actor

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited October 2014

    I don't know what kind of gameplay you have going on so I can't really answer that. But my gut tells me no. That control actor is just there to 'control' things on the level. I'd guess you would put a control camera behavior on your player if anything.

  • thank you i have everything working except camera control ot sure how to fix it

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You're welcome. I'm not sure if it will help but I have a tutorial, below, about camera control and scrolling a level.

  • also how do i stop it from when im in the game being able to click on the characters

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    In my demo I spawned the same actor as you pick in scene 1 just for the sake of speed. I would have different actors for your interface and for game play. That way the actor during game play would no longer be 'clickable'.

  • how would i go about turning them into different actors for gameplay ps. thank you for the tutorial i fixed the camera

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You're welcome.

    Just make/add a new set of actors, the ones for the interface would not be actual 'players' they would just be a visual representation to be clicked on.

  • ok cool thank you so much you helped me a lot

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Good luck with your project.

Sign In or Register to comment.