RoboGean
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
|
| 05 Jan 2015 08:22 PM |
| I want to learn some things in Lua right now, but as far as something FUN to learn, i'm stumped. Can someone please, maybe, tell me something fun to learn? Something I can feel accomplished about? |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 08:29 PM |
What level are you at?
Do you know how to define things?
mydoor = game.Workspace.Door
a = 3
print(a)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 05 Jan 2015 08:36 PM |
| (he means object oriented programming, check out the articles on the wiki) |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 08:38 PM |
| object orientation is a much more classier way of referring to it :D |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 08:39 PM |
"object orientation is a much more classier way of referring to it"
you won't get as many relevant results espescially not on the wiki |
|
|
| Report Abuse |
|
|
RoboGean
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
|
| 05 Jan 2015 08:41 PM |
| @Jashwa Yes I can define things. I also know how to use math.random |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 08:42 PM |
oh boy never mind what i said or what other guy said you're too new
uh
anonymous functions tables string manipulation return statements
|
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 08:43 PM |
May I suggest loops?
They're fun to learn and very useful. |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 05 Jan 2015 08:45 PM |
| ye, if you don't know while loops, for loops, and repeat loops, learn them now. learn if statements first though if you don't know them. |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
| |
|
RoboGean
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
|
| 05 Jan 2015 08:47 PM |
| @instawin, I know loops haha |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 08:49 PM |
Oh boy camera manipulation is a fun one!
It opens up a million opportunity's in game creation.
I wouldn't be able to make this without camera manipulation:
http://www.roblox.com/The-Binding-Of-Isaac-Huge-Project-place?id=200333667 |
|
|
| Report Abuse |
|
|
RoboGean
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
|
| 05 Jan 2015 08:54 PM |
| Nice :) I played it, cool concept. Can I learn how to remove the health bar? |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 08:55 PM |
| Removing the health bar is VERY easy. |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 08:56 PM |
I may be a bit outdated here but:
game.StarterGui:SetCoreGuiEnabled("Health",false) |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
| |
|
RoboGean
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
|
| 05 Jan 2015 08:57 PM |
| Oh sweat, now I can enable an artificial health system? I tried doing Camera Manipulation but I feel I would do better if someone would explain it to me over skype or something |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
| |
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 09:10 PM |
Keybinding.
http://wiki.roblox.com/index.php?title=Taking_keyboard_input
Another nice thing to learn indeed. |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 05 Jan 2015 09:21 PM |
I made a simpler way where your local code would look like:
keybinding:Bind(game.Players.LocalPlayer:GetMouse()) keybinding:BindKeyDown(key, keyDownFunction) keybinding:BindKeyUp(key, keyUpFunction) wait(5) keybinding:UnbindKeyDown(key) keybinding:UnbindKeyUp(key)
Completely removes the mouse event from the player, makes it easy to unbind keys, and also allows for you to transfer key functions from one key to another (not shown above). Really just lacks some versatility where you have a variable holding a key for a function, with that variable having the ability to be changed by the user, creating more player control over keybinding. |
|
|
| Report Abuse |
|
|
RoboGean
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
|
| 05 Jan 2015 10:53 PM |
| Wow, thanks. I'll look into it. I want to build a sort of mario style game haha |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 10:54 PM |
I'm very good with the camera.
Tell me if you'd like help with a 2D script or anything :) |
|
|
| Report Abuse |
|
|
RoboGean
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
|
| 06 Jan 2015 06:35 PM |
| That would be nice! :) I want to make a simple zombie game soon here |
|
|
| Report Abuse |
|
|