Arrastar: um método simples usando apenas Behaviors.

2
  • 2 favourites

Tagged

Attached Files

The following files have been attached to this tutorial:

.capx

swipe-simple-with.behaviors.capx

Download now 172.13 KB

Stats

2,234 visits, 2,400 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Este é um método simples de fazer uma tela arrastável.

Você usa apenas behaviors (comportamentos) padrões sem nenhum código.

Você pode usar este recurso para seleção de fases que não caibam todos na tela, por exemplo.

Como fazer:

Crie uma sprite vazia (sem cor) ou invisível

Width: windowwith (largura: tamanho da janela)

Height: windowheight (altura: altura da janela)

Você pode esticar o seu tamanho até atingir o tamanho da tela ou numericamente pelo painel propriedades.

Behaviors

Agora, atribua a esta sprite os seguintes behaviors :

- DragDrop

- ScrollTo

- BoundToLayout

Pronto! Teste o capx em anexo.

.CAPX

swipe-simple-with.behaviors.capx

Download now 172.13 KB
  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!