Pages

Tuesday, April 20, 2010

WAAAAHHHHHH, learning programing is hard stuffs O_o

I made a few mistakes (giving out wrong solution to people at lemmasoft)

ok remember this...

There are 2 kind of skipping in Renpy Terminology
Skip 1 = is skipping the scene by the press of the mouse or keyboard (or joystick)*some call it next*
Skip 2 = is skipping the scene (by means of fast paced viewing,preference auto-skipping)

how can one disable skipping (skip 1) at the start of the splashscreen label so that their video will play uninterrupted or to have their splashscreen play uninterupted...to actually do this YOU NEED TO DISABLE ALL user inputs..(since there are so many ways to actually "Skip 1" stuffs)

$ config.joystick = False #disables joystick
# is there config.keyboard and config.mouse so that it could easily be disabled
# the following below are based on the keymaps provided by PyTom

$ config.keymap['skip'].remove('K_LCTRL')
$ config.keymap['skip'].remove('K_RCTRL')
$ config.keymap['toggle_skip'].remove('K_TAB')
$ config.keymap['fast_skip'].remove('>')
$ config.keymap['rollback'].remove('K_PAGEUP')
$ config.keymap['dismiss'].remove('mouseup_1')
$ config.keymap['dismiss'].remove('K_RETURN')
$ config.keymap['dismiss'].remove('K_SPACE')
$ config.keymap['dismiss'].remove('K_KP_ENTER')
$ config.keymap['rollforward'].remove('mousedown_5')
$ config.keymap['rollforward'].remove('K_PAGEDOWN')
$ config.keymap['rollback'].remove('mousedown_4')

the code above disables the keymap :D, IT DISABLES BUTTONS inputed from the MOUSE and THE KEYBOARD (i think)

i know that to reset it back you need to append it (replacing "remove" with "append")
ex: $ config.keymap['rollback'].append('mousedown_4')

i feel that there is an easier way to do this (please shed some light)
the overlay code by JC O_o seems not to be working for me...since i got transitions.
and he said "transition overrides the overlay"

Next is the Skip 2, this is quite easy :>
the following code below just disables skipping or the Skip 2(the fast paced function of Renpy)

$ config.skipping = False

#CODE CODE CODE

$ config.skipping = True #returns skipping mode


I need to study more Renpy Programming since it could save lives (just as mugenjohncel said here)

2 comments:

  1. Don't worry, coding gets easier in time, and the people on Lemmasoft are super nice and helpful as long as you aren't a jerk and don't post questions that are already asked and answered somewhere else.

    ReplyDelete
  2. I try not to ask question, I just answers the questions of others. Since having me answer their question makes me learn, if ever I got that problem in the future when I'm building my very first VN.

    Yeah people at lemmasoft is nice like Jake, Mugenjohncel, Pytom and many more (too many to mention)

    ReplyDelete