How can I make the camera move by itself?

0 favourites
  • 7 posts
From the Asset Store
This is a code so you can see the same skin on all screens (peers). Each peer gets a skin, in addition to 4 directions t
  • Hello everyone, I am creating a 2D project, in this project I need the camera to move smoothly on its own along the y axis, regardless of the character. I need to make it so that the player himself has time to follow the camera, going beyond the boundaries - the character dies. I encountered a problem, I can not set the direction of automatic camera movement. Please help

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Use a separate object for the camera - an invisible sprite with ScrollTo behavior. You can give it Bullet behavior and it will move by itself.

    To kill the character when it goes beyond the screen boundaries you can use ViewportLeft(layer) and ViewportRight(layer) expressions.

    For example:

    On every tick
    Player compare X<ViewportLeft(Player.layerNumber) : Player destroy
    
  • Use a separate object for the camera - an invisible sprite with ScrollTo behavior. You can give it Bullet behavior and it will move by itself.

    To kill the character when it goes beyond the screen boundaries you can use ViewportLeft(layer) and ViewportRight(layer) expressions.

    For example:

    > On every tick
    Player compare X<ViewportLeft(Player.layerNumber) : Player destroy
    

    Блин дружище помоги пожалуйста, столкнулся с проблемой в проекте а опыта не хватает решить ее. Если тебе не сложно я сделаю трансляцию экрана условно 10 минут твоего времени занять. Крик души

  • Here are Russian communities where you can ask for help with Construct:

    prodevs.ru/forum

    vk.com/prodevs

  • Here are Russian communities where you can ask for help with Construct:

    https://prodevs.ru/forum/

    https://vk.com/prodevs

    к сожалению что в вк группа что форум который вы скинули мертвы. Мне нужно помощи по минимуму, займет у вас буквально 2 минуты. Не откажите пожалуйста

  • Here are Russian communities where you can ask for help with Construct:

    https://prodevs.ru/forum/

    https://vk.com/prodevs

    я тоже с казахстана, земляк, друг, всего пару минут буквально займет. Я просто голову ломаю, весь инет перерыл.

  • This is an English forum, other languages are not allowed.

    VK group is very much alive, post there and someone will help you. I don't do video chats, sorry.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)