Mid-simulation controls
-
I was making a simple ball game and made controls for the power and aim of the pitch. I accidentally made a slider in mid-simulation.
After I pitched the slider showed up and I could control it. I just used this code:if key("p")==1; 49+slider("strength")*5;else 0;end(in the emitter's strength)
how do I make it show up right away?Here's the file
p=pitch h=hit
-
if I understand you right you want the slider("strength") to show up direct when the simulation starts:
put this code in "onthick" in some object(wherever you want:D)
if frame==0 slider('pitching strength') endhope this was the stuff you search for.
-
Oh yeah duh I was kinda dumb didn't enter my brain
thanks -
Thats OK...

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement