View Single Post
Senior Member
Dameria's Avatar
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 12-07-2009, 08:06 PM

You could have two variables, one being randomNumber, the other is buttonPressed. Then 3d Text as an object

Create a method called "Button" somewhere, then you could have an event saying when button is pressed, do "Button". In that method make buttonPressed == 0.

Then in another method you create, you can do If "buttonPressed == 0" do nothing / Else do 3d Text set text to ("randomNumber" as a String) (you get the "as a string" from the functions tab of World).

I kinda lost my train of thought here, but so far it sounds like that should work.

EDIT: Oh ya and you would have to make the if/else statement in a continuous loop, or in a while(true), or as a "While world is running" event in the event box.

Last edited by Dameria; 12-07-2009 at 08:19 PM.
Reply With Quote