Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Equipment bug  (Read 899 times)

0 Members and 1 Guest are viewing this topic.
Equipment bug
« on: June 24, 2007, 04:39:51 am »
  • Hookshot to the Future!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 517
Ok , i got this from windy examples , i made it for 2  buttons instead of 3 .
Boomerang equip works , but bow doesnt , idk why.
Code: [Select]
if global.menu=true
{
if global.SelectorTX=1
///Boomerang Part
{
if global.GotBoomerang=true
{
if (global.Equiped[1] = "Boomerang")
{
temp = global.Equiped[0]
global.Equiped[0]= "Boomerang"
if global.Equiped[1] ="Boomerang"
{
global.Equiped[1] = "temp"
}

}else{global.Equiped[0] ="Boomerang"}
}

///Bow Part
if global.SelectorTX=8
{
if global.GotBow=true
{
if (global.Equiped[1] = "Bow")
{
temp = global.Equiped[0]
global.Equiped[0]= "Bow"
if global.Equiped[1] = "Bow"

{
global.Equiped[1] = temp
}

}
}
else{global.Equiped[0] ="Bow"}
exit
}
}
















































}
thats c , v is the oppoiste of var 0= 1 , 1=0
Logged
Check my ZRPG development blog at rev2k9blog.spaces.live.com
  • My Blog
Re: Equipment bug
« Reply #1 on: June 24, 2007, 04:52:20 am »
  • Fear my Blades
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 562
Indent your code!  You put the bow part in the brackets for the boomerang part.
Logged

I've done it (sorta)!  Bloom Lighting in GameMaker, and 3D mode too!  Check out the awesome Screen Saver.
  • Kousou Games
Re: Equipment bug
« Reply #2 on: June 24, 2007, 06:07:14 am »
  • Hookshot to the Future!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 517
can't belive i made that mistake :P its fixed now topic locked.
Logged
Check my ZRPG development blog at rev2k9blog.spaces.live.com
  • My Blog
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.537 seconds with 43 queries.

anything