Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Variables and scripting help?

Asked by
Vividex 162
10 years ago

I learned how to do this code that makes a Welcome sign from circles in different colors then bounces the shapes when you bring your mouse near it, this is what I'm talking about: http://www.codecademy.com/courses/hour-of-code/0/1

How would I make that on a GUI on roblox studio? Or is that even possible?

1 answer

Log in to vote
0
Answered by
hiccup111 231 Moderation Voter
10 years ago

That is neat, although, the key is behind the 'bounceBubbles()' function, which (for me atleast) you can't see.

It's certainly possible to do this, it's just going to take time to figure-out and code.

The first job, would be to make a system that makes characters (letters and numbers, etc).

The easiest way I see of doing this, is to make Guis of every letter, perhaps just the Nodes that basically makes that letter.

Then a function scans through the nodes and places Gui circles in their place.

As for the bounce, you could you use TweenPosition (worry about size later). Then just take the position of each gui-circle, and the position of the mouse, then add them, or something.

Then perhaps a loop to push the circles back to their original positions

That's my idea on it atleast.

0
Wow great thinking :o I'm just learning scripting (or code) so I'll just mess around with it, look on some websites for help! Thanks! I'll try :P Vividex 162 — 10y
0
I wish there was a method for getting the pixels within a character (letter/number), then using them as nodes. It'd save a lot of time and tedious work. Hope you get it working. hiccup111 231 — 10y
Ad

Answer this question