How do I set the speed of a bullet to a number in a textbox

Get help using Construct 2

Post » Sun Feb 28, 2016 9:03 pm

How do I set the speed of a bullet to a number in a textbox,

for example: if the text in the textbox is "3" the bullet speed is equal to 3
B
5
Posts: 10
Reputation: 247

Post » Sun Feb 28, 2016 9:22 pm

event
objTextbox > compare text
so if "1" set speed to ...

Update: forget my solution - the one from @blackhornet is way more useful
Last edited by fm4fanAT on Sun Feb 28, 2016 9:36 pm, edited 1 time in total.

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Sun Feb 28, 2016 9:28 pm

Speed = int(TextBox.Text) or float(TextBox.Text)
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, ignaciosimo and 52 guests