Arrastar: um método simples usando apenas Behaviors.

2
  • 2 favoris

Taggé

Fichiers attachés

Les fichiers suivants ont été attachés à ce tutoriel:

.capx

swipe-simple-with.behaviors.capx

Télécharger maintenant 172.13 KB

Statistiques

2,238 visites, 2,406 vues

Outils

Partager

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!