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
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

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
294
S
117
G
96
Posts: 7,311
Reputation: 71,086


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests