How do I adding variable to text like a calculator

Get help using Construct 2

Post » Mon Oct 05, 2015 2:34 am

hi
i create my program just like calculator ...just like : if i pressed object_1 , in text will show number 1 from right side... but i dont know how to do that....
please help me guys :|
B
12
S
3
Posts: 10
Reputation: 768

Post » Mon Oct 05, 2015 11:43 am

try...this way..

just one Sprite..let's call it "Numbers"..10 frames..
(animation speed=0)

Image

put sprites on Layout
Image

add Text object...in Properties..set Horizontal alignment-Right

Image
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Mon Oct 05, 2015 5:06 pm

There are actually a few tutorials already treating about how to make a calculator :
https://www.scirra.com/tutorials/search?q=calculator

Please, instead of posting multiple topics with the same subject, do a search first (in the forums and tutorials) and keep to a single topic if you really need to post.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,293


Return to How do I....?

Who is online

Users browsing this forum: AndreasR, tarek2 and 11 guests