RMDC #2: Choice Pictures

Discussion in 'Code-Off Challenge' started by Tsukihime, Dec 31, 2014.

  1. Susan

    Susan Veteran Veteran

    Messages:
    2,766
    Likes Received:
    8,389
    Location:
    somewhere on this planet~
    First Language:
    No idea...
    Primarily Uses:
    RMMV
    Thanks for the tip, Tsukihime! ^^

    I forgot that I could have just used the "Autorun" trigger to prevent player movement.

    It actually helps to reduce the amount of event commands, and map events.

    The post above has been modified accordingly.
     
    #21
    Marsigne likes this.
  2. Zetu

    Zetu Level 99 Stabomancer Veteran

    Messages:
    247
    Likes Received:
    99
    Location:
    Durham, NC
    First Language:
    English
    Primarily Uses:
    N/A
    I made some major changes and added new features to my entry. /me stabs
     
    Last edited by a moderator: Jan 8, 2015
    #22
    Tsukihime likes this.
  3. sokita

    sokita Crawling back to the surface Veteran

    Messages:
    198
    Likes Received:
    29
    Location:
    Indonesia
    First Language:
    Indonesian
    For Ralpf, try set the speed of that autorun event to fastest, the loop will be faster and input will be more responsive.
     
    #23
  4. Meridianbot

    Meridianbot Veteran Veteran

    Messages:
    84
    Likes Received:
    14
    First Language:
    German
    So i tried it today aswell, this is my outcome yet.

    My personal challenge was, "Don't use Scriptcalls".

    [​IMG]
    I do not include page 3, it is only the "you get your weapon"-defaut-hick-hack

    I used the pictures made from Zetu, wheter i can use them or i do get permisson from someone else, i will release a demo.

    (I hate using Gimp or similar programs)
     
    #24
    Tsukihime likes this.
  5. Ralpf

    Ralpf Veteran Veteran

    Messages:
    597
    Likes Received:
    152
    Location:
    Sparta, TN
    First Language:
    English
    That didn't change anything, I didn't think it would but I gave it a shot. Tried a few other methods, too.

    However, I have stumbled unto something that I think makes the responsiveness feel better, even though it is really the same.

    New link: https://www.dropbox.com/s/u27en40a82mv5st/rmdc2%20-%20Ralpf2.zip?dl=0

    Kept the old file attached to the old link so people could compare.
     
    #25
    Tsukihime likes this.
  6. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,057
    Location:
    Toronto
    First Language:
    English
    Hmm my next challenge was going to be adding animations to these choices based on what you've selected but I don't think it would be necessary since it would mainly just be putting some effort into moving the pictures around or manipulating sizes/opacity and so on now that you've already got it set up.


    And we can see the the demos already have some sort of animation support...


    My solution to this is similar to Zetu's except I'm looking for ways to incorporate eventing into it in such a way that you have control over where the pictures are positioned, how they move around, and so on (via Show Picture, Move Picture, Tint Picture, Erase Picture, etc)
     
    Last edited by a moderator: Jan 9, 2015
    #26
  7. C-C-C-Cashmere (old)

    C-C-C-Cashmere (old) Resident Weirdo Veteran

    Messages:
    834
    Likes Received:
    342
    First Language:
    English
    This was a really cool and versatile solution! Except when you interact with Ralph twice, the options start stuffing up. Any reason why this is? Cheers though!
     
    #27
  8. Zetu

    Zetu Level 99 Stabomancer Veteran

    Messages:
    247
    Likes Received:
    99
    Location:
    Durham, NC
    First Language:
    English
    Primarily Uses:
    N/A
    Could you provide a screenshot? I get the same thing after talking to Ralph twice.
     
    #28
  9. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,057
    Location:
    Toronto
    First Language:
    English
    I tried the event approach: demo


    I ran into the issues that Ralpf mentioned about trying to select the middle picture, so I used Input.trigger? to check for user input rather than the default "button is pressed" condition, which uses Input.press?


    `Input.trigger?` appears to be triggered once when you press a button, but it doesn't trigger again until you release the button and then press again.


    As opposed to `Input.press?` which triggers as long as the button is being pressed.


    Here's a video




    Initially I did try meridianbot's challenge without any script calls, and found that a 5-frame wait would be enough of a delay to not automatically set off the "button pressed" condition, so 5-7 frames as Ralpf suggests would be a good amount of delay.


    Though, because of the way events work when it comes to waiting, you might end up in a situation where you press a button just at the exact moment that the event is waiting (5-7 frames is a really small time frame, but if you're mashing keys repeatedly it becomes more noticeable)
     
    Last edited by a moderator: Jan 15, 2015
    #29
  10. Ralpf

    Ralpf Veteran Veteran

    Messages:
    597
    Likes Received:
    152
    Location:
    Sparta, TN
    First Language:
    English
    That is a much cleaner solution, I don't know if you tried my update a few days ago (which feels better than it did before), but will keep that in mind if I have to do something like this.
     
    #30
  11. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,057
    Location:
    Toronto
    First Language:
    English
    Yes, it did feel noticeably more responsive. I thought the animation effect was nice as well (where buttons on the way light up as well)
     
    Last edited by a moderator: Jan 15, 2015
    #31
  12. Ralpf

    Ralpf Veteran Veteran

    Messages:
    597
    Likes Received:
    152
    Location:
    Sparta, TN
    First Language:
    English
    That effect was accidental, but really easy to replicate. One of those accidents that is obvious what you did wrong after the fact, but works anyway. What I did was duplicate the 'change picture on variable' conditionals into the button press conditionals before the wait (so the wait happens after the picture change) but left the originals back at the top of the event, so for a 7 frame period of time both are switched to the lighter picture, after 7 frames it is only the new one, creating the illusion of animation.

    This is what it ends up looking like:

    RMDC 2-2c.jpg
     
    #32
  13. Zetu

    Zetu Level 99 Stabomancer Veteran

    Messages:
    247
    Likes Received:
    99
    Location:
    Durham, NC
    First Language:
    English
    Primarily Uses:
    N/A
    I don't see the end date on the OP. When is it?
     
    #33
  14. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,057
    Location:
    Toronto
    First Language:
    English
    There isn't really an end date since these are just casual challenges that demonstrate how certain things can be done, in various ways.
     
    Last edited by a moderator: Jan 28, 2015
    #34
  15. Candacis

    Candacis Pixel Pusher Restaff

    Messages:
    1,447
    Likes Received:
    1,931
    Location:
    Vienna
    First Language:
    German
    Hey, I'm looking exactly for something like this since I want every dialog option be presented as a picture (or rather as an icon) in my little project. Zetu, you have added an [icon=?] option, but I'm unsure what it does. Can you explain it?

    I'm looking for a choice script where I can use icons as choice and if they would be presented nicely, even better.
     
    Last edited by a moderator: Apr 7, 2015
    #35

Share This Page