Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Another Menu Problem
« previous next »
  • Print
Pages: [1]

Author Topic: Another Menu Problem  (Read 10463 times)

Offline Fortet

  • Cheeky Bastard
  • Exemplar
  • *
  • Posts: 1,365
Another Menu Problem
« on: July 07, 2010, 04:23:25 AM »
Alright, so, I've got three cursors on the screen. The first one moves fine without any problems. Upon selecting something with the first cursor, the something is highlighted, and a new cursor appears on the second column. For some reason, moving the cursor twice on the second column moves the cursor back to the first column. This poses a problem.

Coding this has been quite the hassle today, but it has taught me much about variables and key input processing. However, there is still much to learn obviously.

Any idea as to what the problem may be? I have three different sets of X,Y variables, three different cursor variables, and three different Key Input variables.

EDIT: Here's what it looks like -
« Last Edit: July 07, 2010, 04:42:08 AM by Fortet »
Logged

Offline lilsniffs3

  • Exemplar
  • *
  • Posts: 1,573
Re: Another Menu Problem
« Reply #1 on: July 07, 2010, 04:40:59 AM »
Did you use copy paste on the coding? That caused a problem once as I forgot to change a tiny thing. Look for an error in it.
Logged

Offline Fortet

  • Cheeky Bastard
  • Exemplar
  • *
  • Posts: 1,365
Re: Another Menu Problem
« Reply #2 on: July 07, 2010, 05:15:12 AM »
No copy/paste. I did everything as I came to it. Each line got its own love :)
Logged

Offline lilsniffs3

  • Exemplar
  • *
  • Posts: 1,573
Re: Another Menu Problem
« Reply #3 on: July 07, 2010, 06:31:56 AM »
Can you take a screenshot of the coding?
Logged

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Another Menu Problem
« Reply #4 on: July 07, 2010, 06:53:57 AM »
Since it moves and all I believe that you have the wrong X and Y coordinates added somewhere, or the wrong variable chosen.
It sounds like one of those problems.
Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

Offline Fortet

  • Cheeky Bastard
  • Exemplar
  • *
  • Posts: 1,365
Re: Another Menu Problem
« Reply #5 on: July 07, 2010, 10:33:37 PM »
I'm going to try one more method before I post the code here. Just came to me while I was at work.
Logged

Offline Fortet

  • Cheeky Bastard
  • Exemplar
  • *
  • Posts: 1,365
Re: Another Menu Problem
« Reply #6 on: July 08, 2010, 03:29:46 AM »
Alright, so my idea partially worked. I decided to split each column into its own event. The cursor moves fine in the first and second columns! But for some reason, when trying to select a word in the second column, nothing happens.
Each event is basically the same coding, just a few changes (variables, X,Y coordinates, picture numbers). So if selecting a word works in the first column, why not in the second?
Logged

Offline zuhane

  • Freakalicious
  • Leader
  • *
  • Posts: 2,192
  • Kill me
Re: Another Menu Problem
« Reply #7 on: July 08, 2010, 10:13:55 AM »
I probably can't help. If it's any consolation, your menu looks really pretty and well made!
Logged
Geese ruined my life.

https://soundcloud.com/tom-kingston-3/geese

Offline Fortet

  • Cheeky Bastard
  • Exemplar
  • *
  • Posts: 1,365
Re: Another Menu Problem
« Reply #8 on: July 09, 2010, 09:05:55 PM »


Here's the code for the first selector, BTW. The second and third selectors are nearly identical, except for variable references of course.
Logged

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Another Menu Problem
« Reply #9 on: July 10, 2010, 06:45:15 AM »
What simply hit my mind is that there's no conditional branch or anything. So even after you are done with the first one - it might still react to the fact that you pressed up or down with those key input -commands.

Try to press F9 during test run to see if the variable values of the first choice is changed when you try to move the second.
Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

Offline Fortet

  • Cheeky Bastard
  • Exemplar
  • *
  • Posts: 1,365
Re: Another Menu Problem
« Reply #10 on: July 10, 2010, 09:21:54 AM »
Odd. Nothing's changing in the other variables. However, attempting to press Enter (5) isn't setting the second Move variable to 5... Let me check the coding.

EDIT: Now I better understand what you meant. I think. The second cursor has its own Move2 variable, as the third has Move3. I've made sure to change all of the appropriate variables over... I'm still confused lol

What if I send you the game file? See if you can figure it out by actually tinkering with it?
« Last Edit: July 10, 2010, 09:25:16 AM by Fortet »
Logged

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Another Menu Problem
« Reply #11 on: July 10, 2010, 09:02:48 PM »
Quote from: Fortet on July 10, 2010, 09:21:54 AM
What if I send you the game file? See if you can figure it out by actually tinkering with it?

If you'd like, I love to check people's codes it's like seeing things from another perspective.
But you could just copy that menu to a clean project. OR copy the project and remove all the game stuff. It might decrease the project size and you might feel safer with it.

Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

Offline Fortet

  • Cheeky Bastard
  • Exemplar
  • *
  • Posts: 1,365
Re: Another Menu Problem
« Reply #12 on: July 11, 2010, 02:16:44 AM »
Lol I'm not too worried about sending out to you, but uploading it would work better if it were smaller. I'm at work right now, so I'll send it to you when I get home.
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Another Menu Problem
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum