How to scroll down a scene? SOLVED

silvia8989

  • Posts: 153
I'm making a scene like this one. Soon I'll finish the space and I don't know how to scroll down like a normal page and make other actors appear

« Last Edit: December 17, 2016, 09:33:34 am by silvia8989 »

LIBERADO

  • *
  • Posts: 2720
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

silvia8989

  • Posts: 153
Ok but where shall I place my new actors? There's no space left

LIBERADO

  • *
  • Posts: 2720
Increase the height of your scene:
   
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

silvia8989

  • Posts: 153
Ok I enlarged the height. And now? Widht 10 tiles and Height 50 tiles.

LIBERADO

  • *
  • Posts: 2720
Now you can place more actors.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

silvia8989

  • Posts: 153
Can I scroll by swiping or can I place a arrow to scroll?

LIBERADO

  • *
  • Posts: 2720
To scroll by swiping, create a number attribute called "Y" and add this event to the scene:
   

« Last Edit: December 15, 2016, 12:34:53 pm by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.


silvia8989

  • Posts: 153
Got a problem when I press down it goes down but then when i click on the actors the screen goes up again

LIBERADO

  • *
  • Posts: 2720
I have tested it and I don't have that problem. The issue must be in other part of your code.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

silvia8989

  • Posts: 153
Don't know it's the same

LIBERADO

  • *
  • Posts: 2720
I guess you are using in your game some additional code which affects the camera position.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

silvia8989

  • Posts: 153
No other codes. Only actors behavior that switch animation upon click

LIBERADO

  • *
  • Posts: 2720
You have not replicated my code correctly.
You must place the "set Y to..." bock outside the "if..." block, not inside.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.