Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Graphics width
Started by FileEX Feb 07 2019 06:40 AM

- - - - -
2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

FileEX

[GLOBAL: userInfoPane.html]
FileEX
  • Observer

  • 2 posts
  • Corona SDK

How i can do easy progress bar? Because in corona sdk graphics, the width is calculating of the X axis into the left and right side. I think it should be calculating from X axis to right side or left if width will be negative (< 0).

 

Now it look

https://imgur.com/bhV6fIN

 

I want how it should be look

 

https://imgur.com/JCy3t4f

 

(I can't use image extension on this community - idk why so i put link to the imgur)

 

I think that you understand what i mean (sry for eng ;p)



[TOPIC: post.html]
#2

anaqim

[GLOBAL: userInfoPane.html]
anaqim
  • Contributor

  • 726 posts
  • Corona SDK

You are asking a very basic question that is covered in the first chapter in the documentation.

 

You need to study this and make it your bible.

 

https://docs.coronalabs.com/



[TOPIC: post.html]
#3

carloscosta

[GLOBAL: userInfoPane.html]
carloscosta
  • Contributor

  • 613 posts
  • Corona SDK

what you need is to learn anchors,

 

like @anaqim said, this is lvl 0 question. try to read something first before you build your first app. lua is a very easy language to learn but you need to read something before you code.

 

https://docs.coronalabs.com/api/type/DisplayObject/anchorX.html




[topic_controls]
[/topic_controls]