LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



Go to page : Previous  1, 2, 3, 4  Next

View previous topic View next topic Go down Message [Page 2 of 4]

Active Member
Active Member
#11 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

handy333

handy333
Active Member
Active Member
Active Member
profile
Let me begin by saying thanks for your time and help.

Some of the window sizes are on purpose.

The only problem I'm having is the help bar at the bottom. I was experimenting with the - 32 thing and lots of other ideas but no dice. Things started out with the text saying help via example. So I decided to change some stuff. Then the text turned tiny and sometimes was cut off.

When I tried to change the text size nothing happened, then after that the text didn't display from that point on.


"You must unactive $game_temp.scene_gallery when the gallery is disposed and active it when initialize. I give you this because, I want you to read and understand what I made.
I'm very confused about the aliasing."

The other things with text is confusing me.
I'm still learning the programming lingo.
So most of it I don't understand.

I use most of the strategy I use in eventing.

What exactly does "rescue" do?
What exactly does "alias" do?
...I think that's about it.

^I don't really understand this.^


Thanks in advance.


I would like to fully understand all of this.
For Project Rising Sun.
Active Member
Show Signature
Active Member
http://projectrisingsun.weebly.com/ http://soundcloud.com/handyfox https://www.youtube.com/channel/UCkBX7ZxqoXslAtqsdrmsn_w
EVENTALIST
EVENTALIST
#12 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
rescue, is do this if the code fails.

Code:

File.open("my name") rescue print("file not found")

and alias is making edits that involve the original code.
Code:

def update
  do_this
  ... ect
end

if you where to just do this:
Code:

def update
  do_this_instead
  ... ect
end

it will write over the first code and never run it. but if you want to make an edit that adds to the previous code you make an alais.
Code:

alias :new_update :update
def update
  do_this_code_first
  ... ect
  new_update # this will call the old method
  now_do_this_after # do some more new code if necessary
  ... ect
end

@nuka - you graduate from school. Very Happy
EVENTALIST
Show Signature
EVENTALIST
Active Member
Active Member
#13 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

handy333

handy333
Active Member
Active Member
Active Member
profile
Now I feel bad...
Active Member
Show Signature
Active Member
http://projectrisingsun.weebly.com/ http://soundcloud.com/handyfox https://www.youtube.com/channel/UCkBX7ZxqoXslAtqsdrmsn_w
The only one
The only one
#14 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

NuKa_BuBble

NuKa_BuBble
The only one
The only one
profile
lol!

Try this: http://www.mediafire.com/?ysuhp9qqload5yh

It's 1 of my 11 references/tutorials I took from the web.
The only one
Show Signature
The only one
http://nukabubble.deviantart.com/ http://soundcloud.com/nuka_bubble https://www.youtube.com/user/NuKaBuBble?feature=mhee
Active Member
Active Member
#15 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

handy333

handy333
Active Member
Active Member
Active Member
profile
Alias is just my enemy.
I can't seem to fully understand it.
I've looked everywhere on the topic
but its explanation is hazy.
Active Member
Show Signature
Active Member
http://projectrisingsun.weebly.com/ http://soundcloud.com/handyfox https://www.youtube.com/channel/UCkBX7ZxqoXslAtqsdrmsn_w
Administrator
Administrator
#16 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
handy333 wrote:Alias is just my enemy.
I can't seem to fully understand it.
I've looked everywhere on the topic
but its explanation is hazy.

Yo Handy! One of my most common mistakes that I repetitively make when it comes to code is "over thinking"

what part of the alias method do you not get?

the alias method is mostly used so that one script can write to another and use an existing method without have to rewrite the whole sha-bang-bang.


Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch
Active Member
Active Member
#17 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

handy333

handy333
Active Member
Active Member
Active Member
profile
Is it like this?

class You
def this
alsdj;fkl;
end
end

class Me
alias this
end

If it is, isn't super() the same way?

I think I get confused when I read about more than one topic and try to try them all at once.
Active Member
Show Signature
Active Member
http://projectrisingsun.weebly.com/ http://soundcloud.com/handyfox https://www.youtube.com/channel/UCkBX7ZxqoXslAtqsdrmsn_w
Administrator
Administrator
#18 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
you're getting it...

class You
def this
blah
blah
blah
blah
end
end

class Me < You
alias do_this this
def this
more_blah
do_this
end
end

^,^
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch
The only one
The only one
#19 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

NuKa_BuBble

NuKa_BuBble
The only one
The only one
profile
Over Power this sample Shocked
The only one
Show Signature
The only one
http://nukabubble.deviantart.com/ http://soundcloud.com/nuka_bubble https://www.youtube.com/user/NuKaBuBble?feature=mhee
Active Member
Active Member
#20 Ruby/RGSS Lessons - Page 2 Empty Re: Ruby/RGSS Lessons
Loading

handy333

handy333
Active Member
Active Member
Active Member
profile
So the "<" in "Me < You" is needed for alias?
Is alias like include?
Active Member
Show Signature
Active Member
http://projectrisingsun.weebly.com/ http://soundcloud.com/handyfox https://www.youtube.com/channel/UCkBX7ZxqoXslAtqsdrmsn_w

Sponsored content

profile

View previous topic View next topic Back to top Message [Page 2 of 4]

Go to page : Previous  1, 2, 3, 4  Next

 

Chatbox system disabled
Personal messaging disabled