Page 1 of 1

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

PostPosted: Sun Feb 28, 2016 9:03 pm
by ColonelCustard
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

Re: How do I set the speed of a bullet to a number in a text

PostPosted: Sun Feb 28, 2016 9:22 pm
by fm4fanAT
event
objTextbox > compare text
so if "1" set speed to ...

Update: forget my solution - the one from @blackhornet is way more useful

Re: How do I set the speed of a bullet to a number in a text

PostPosted: Sun Feb 28, 2016 9:28 pm
by blackhornet
Speed = int(TextBox.Text) or float(TextBox.Text)