Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

how to create horizontally scrollable menu for layout editor
Started by maheshmn121 Mar 17 2018 10:15 PM

- - - - -
1 reply to this topic
menubar scrollmenu question menu editor game
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

maheshmn121

[GLOBAL: userInfoPane.html]
maheshmn121
  • Observer

  • 14 posts
  • Corona SDK

Hi I want to add a Horizontally scrollable menu just like in clash of clans,

 

 

qlCgtVo.jpg

 

 

I am actually building a game currently, I have added limited number of objects to the screen,when I tap on the specified objects it gets added to the screen and I am free to place it anywhere by dragging it,

but when I add more objects I want them to be accesible by scrolling them horizontally just like in clash of clans village editor mode this is how my game looks presently.

 

https://drive.google.com/open?id=1kye2H-ghMFWz9fwDg22KzeMc7WqfPlBD

heres a short video of layout of my game

I have actually added images to screen at the bottom when I tap on a particular image, it gets added to screen in the form of a physics object.I am free to move it anywhere on the screen



[TOPIC: post.html]
#2

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,070 posts
  • Corona SDK

I've developed a scrollview implementation which allows you to define a direction of touch/swipe in which items will be pulled from the menu, but any other direction will cause scrolling of the menu:

 

https://gist.github.com/HoraceBury/eeab199c040673f04d391ae744ee2ea3

 

It's been a while, but if you have questions, let me know here.




[topic_controls]
[/topic_controls]