MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
|
| 15 Nov 2014 12:34 AM |
I am currently learning how to script, and it just seems to go in one ear and out the other. Any tips on how to understand it?
Lua :P |
|
|
| Report Abuse |
|
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
| |
|
1RATM
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 2477 |
|
|
| 15 Nov 2014 12:40 AM |
| Do you have any prior coding experience? |
|
|
| Report Abuse |
|
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
|
| 15 Nov 2014 12:41 AM |
ehh, I tried to learn java
and well I know the basics of Lua |
|
|
| Report Abuse |
|
|
Pacified
|
  |
| Joined: 05 Oct 2014 |
| Total Posts: 48 |
|
|
| 15 Nov 2014 12:42 AM |
Try to relate things in scripting.
I currently skipped Lua for some reason and I am now scripting using Eclipse (Java). I prefer to get the idea of scripting in Java than Lua even though it's more basic. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 15 Nov 2014 12:44 AM |
Here's a terrible explanation:
You should know what variables are from mathematics. A comment is just text that is not executes (single line: --, double line: --[[ followed by a ]]).
datatypes are the types that a value can take on. Whether that value be a number (123), a string ("hi"), a boolean (true), etc., all values take on some type. (More information: http://lua-users.org/wiki/LuaTypesTutorial)
local variables are variables that can be accessed only from that scope (http://lua-users.org/wiki/ScopeTutorial)
function upvalues and closrues (http://www.lua.org/pil/6.1.html)
And so forth |
|
|
| Report Abuse |
|
|
1RATM
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 2477 |
|
|
| 15 Nov 2014 12:45 AM |
| The thing with coding is you don't just learn it; it isn't so much learning formulas/the knowledge but rather developing the logic. Developing the proper logic for programming takes a while. I developed this through studying other codes. This would be my recommended method--don't just learn the language but develop insight on the proper logic required. |
|
|
| Report Abuse |
|
|
1RATM
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 2477 |
|
| |
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
| |
|
1RATM
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 2477 |
|
|
| 15 Nov 2014 12:52 AM |
| Any way you can take a computer science class at your school? That would be the best method to develop the required logic. Maybe you can take a class at your local community college, too. |
|
|
| Report Abuse |
|
|
Pacified
|
  |
| Joined: 05 Oct 2014 |
| Total Posts: 48 |
|
|
| 15 Nov 2014 01:04 AM |
Eclipse ftw!
Tbh, I'm the some sort-of assistant of our computer teacher :D The best part of it is I fixed a wrong line of code that my teacher wrote and it feels awesome LOL, I still need my teacher though. I'ma try to force him to make a game both of us are going to develop LOL.
Okay, back to topic. You just don't watch tutorial of a programming then when you try to do the first basic code, you feel like you know everything already and when you write another code and it doesn't work, you give up and try to learn another programming language. This is based on what I have done and now I figured out where I was wrong.
I'm ready and everything's planned for what I am going to do... Eclipse(Make a simple android game) >>> Lua (optional) >>> Unity3d (Make a simple, yet fun game) |
|
|
| Report Abuse |
|
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
|
| 15 Nov 2014 01:04 AM |
well, Im taking multi-media (doesnt really teach you about programming only pictures :/)
but when Im in high school I probably will take programming |
|
|
| Report Abuse |
|
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
|
| 15 Nov 2014 01:08 AM |
I was playing around with loops and I ended up with this. this doesnt work and im wondering why.
while wait(1)do who = "this is mechaduck" print(who) if who == true then print"this is true!" end
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
| |
|
Pacified
|
  |
| Joined: 05 Oct 2014 |
| Total Posts: 48 |
|
|
| 15 Nov 2014 01:16 AM |
while wait(1)do who = "this is mechaduck" print(who) if who == "this is mechaduck" then print"this is true!" end end |
|
|
| Report Abuse |
|
|
Pacified
|
  |
| Joined: 05 Oct 2014 |
| Total Posts: 48 |
|
|
| 15 Nov 2014 01:17 AM |
Output should say...
this is mechaduck this is true |
|
|
| Report Abuse |
|
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
|
| 15 Nov 2014 01:22 AM |
| thanks, i was wondering also why it wasnt saying that part. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 15 Nov 2014 01:24 AM |
https://www.youtube.com/watch?v=Urvn69ZbM_Y
The videos get higher quality (Not hd, but readable) on part 3 and up I think |
|
|
| Report Abuse |
|
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
| |
|
Pacified
|
  |
| Joined: 05 Oct 2014 |
| Total Posts: 48 |
|
|
| 15 Nov 2014 01:28 AM |
if statement doesn't work like how you did...
if who == true then wouldn't just work because "true/false" is for boolean things. Here is an example:
wait(1) game.Workspace.Part.Anchored = true
|
|
|
| Report Abuse |
|
|
Pacified
|
  |
| Joined: 05 Oct 2014 |
| Total Posts: 48 |
|
|
| 15 Nov 2014 01:31 AM |
This is a better tutorials for me I guess.
Beginner Scripting: https://www.youtube.com/playlist?list=PLXX6hhg4CysYf0M-_GtCEOgGlkBfrXsoJ Advanced Scripting: https://www.youtube.com/playlist?list=PLXX6hhg4CysbJWPZTFBxCxutohhKNrHKU GUI Scripting: https://www.youtube.com/playlist?list=PLXX6hhg4CysbbVDNSKwV-XTGZA8ckllMJ Minigames Scripting: https://www.youtube.com/playlist?list=PLXX6hhg4CysZPsA8enBGiwNUQRJeVCn6n
Made by a famous person here too that was in front page. |
|
|
| Report Abuse |
|
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
|
| 15 Nov 2014 01:34 AM |
| thanks, ill be sure to chekc those out as well |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 15 Nov 2014 01:37 AM |
I started learning lua because one of my only roblox friends was learning it and he was ignoring me to play script builders with his other friend so I wanted to player with them
so I learned a little (Hardly any) then he eventually stopped talking to me anyway because he quit (Or pretended to and was just ignoring me...?)
Then I kept learning after that because it was fun and I wanted to make stuff |
|
|
| Report Abuse |
|
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
| |
|