Making a screen slide in...

0 favourites
  • 5 posts
From the Asset Store
Make your own platformer for both the web and mobile easy with this Santas Platformer Template, FULLY DOCUMENTED
  • Is there a way to make a screen slide into the main view?

    Basically, I'm trying to have the user select a settings screen and want that to slide in over the main screen. I created a separate layout for this settings screen and the only way to make it appear is the "Go to layout" action. This makes the screen appear instantaneously however I'm looking for an effect that slides from the left edge.

    Any ideas or examples on how I can achieve this?


  • Maybe , you can force the view to be in a Sector of the screen and if the user clicks or presses a key scroll on X or Y, and for the smooth effect you can use DeltaTime Multiplier like :


    if onkey pressed "enter"

    for ( actualX or Y to new X or Y)

    scroll x ( newx or y * dt * 1(or the amount of ticks you want)


    Hope this works for you, sorry for the fast reply i'm not in my home :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the reply.

    When you say a sector of the screen do you mean like making my main screen double the width and putting the "settings" screen on the second half and just scroll it in using the code you provided?

  • Yay, i mean that :)

    Try it ;)

  • Sorry Vhael. I'm having trouble with the code. When you have a minute can you tell me how I use the code you povided. For example, what does "( actualX or Y to new X or Y)" refer to...the layout? Does "Scroll x..." also refer to the layout?

    So far I have these conditions:

    Mouse: On left button clicked on sprite

    System: For "" from scrollx to scrollx + 1000

    ...with this action:

    Set scroll X to scrollx * dt * 1

    ...but its not doing anything. I'm a noob so excuse me for my ignorance. Still reading and learning.

    Thanks in advance.

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