DE EN FR ES IT CZ
Back Back to top

Starting with visionaire studio - if condition to align character

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  • #1, by patrik 8 years ago Quote
    Hi guys!

    I am started make my first game with visionaire studio. I am really a beginner and doesn't have much experience so here comes one of my problems.

    I am working on a game where you can talk with character on some kind of hologram device. My idea is to on the right click show the inventory and hologram device and when you left click on the device your character pull out this hologram - your friend show up and you can have dialogue with her. I attached the video.


    My problem is that I need some kind of if condition to align character.  In other words. When your character is align left and you click on device -> play animation "pull out device left" and when your character is align right play animation "pull out device right".
    I don't know how to make this condition work. I have never use Lua script so I guess that is going to be the way.
    Don't know if I explain it properly I hope you will understand and give me some tips how to work it out.
  • New to Visionaire Studio?

    Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.

    See the Indie Bundle Try it for free
  • #2, by sebastian 8 years ago Quote
    Hey there smile

    Actually VS has an Actionpart for this. Its "If character is aligned to" where you can set degrees or a range between the characters needs to be aligned to.

    Best regards
    Sebastian
  • #3, by patrik 8 years ago Quote
    Excatly what I need. Oh sorry for a totally unnecessary question. I will try to spend more time looking for actionparts the next time.

    Thank you very much!