06-13-2015, 06:56 AM
I still think they forgot to mention something relatively important. Whenever you define a method as method? because you need to check any sort of conditions, it should never ever include any piece of code that could throw a result other than true or false and no executable code like assigning values to variables should be included.
# Save Player Position
x, y = self.x, self.y
It seems you are just assigning values to local variables that will be discarded at the end of the method execution. Why do you do that? Even if variable x were actually method x, that would make no sense at all, it's redundant, unnecessary, especially because nothing else inside that piece of code needs those values. Perhaps you should recreate your script in such a way that will make it more logical, methodical, etc. This is just my very humble opinion but I seriously think that starting anew might help you more by letting you better understand your current issues with your script and the way the script should be executed.
# Save Player Position
x, y = self.x, self.y
It seems you are just assigning values to local variables that will be discarded at the end of the method execution. Why do you do that? Even if variable x were actually method x, that would make no sense at all, it's redundant, unnecessary, especially because nothing else inside that piece of code needs those values. Perhaps you should recreate your script in such a way that will make it more logical, methodical, etc. This is just my very humble opinion but I seriously think that starting anew might help you more by letting you better understand your current issues with your script and the way the script should be executed.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE