I Wanna Be The Forums!

Please login or register.

Login with username, password and session length
Advanced search  

News:

Chat button has been eaten. Click here to join in the idling fun!

Pages: 1 2 [3]

Author Topic: help with boss in iwbt engine  (Read 6663 times)

gatotx

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: help with alarms and boss in iwbt engine
« Reply #30 on: April 26, 2010, 09:06:44 pm »

when i added that into my boss's step event

if (bosshealth<1){global.Boss1=1}

it showed an error..
Logged

Icypizza

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: help with alarms and boss in iwbt engine
« Reply #31 on: April 26, 2010, 09:17:35 pm »

if you have an object or sprite or whatever named "Boss1" then you can't have "global.Boss1" and if it still doesn't work I would suggest removing any numbers/capitals in the variable name.
« Last Edit: April 26, 2010, 10:06:09 pm by Icypizza »
Logged

gatotx

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: help with alarms and boss in iwbt engine
« Reply #32 on: April 27, 2010, 05:49:06 pm »

if you have an object or sprite or whatever named "Boss1" then you can't have "global.Boss1" and if it still doesn't work I would suggest removing any numbers/capitals in the variable name.

ok i tried that and creating the object that should dissapear..
___________________________________________
FATAL ERROR in
action number 1
of  Step Event
for object object407:

COMPILATION ERROR in code action
Error in code at line 1:
   if (global.bossone=1)and(global.bosstwo=1){instance_destroy()}
             ^
at position 12: Variable name expected.
Logged

Icypizza

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: help with alarms and boss in iwbt engine
« Reply #33 on: April 27, 2010, 08:49:54 pm »

Declare variables global.bossone and global.bosstwo somewhere, maybe in the create event of the bosses I can't think right now
Code: [Select]
global.bossone=1
global.bosstwo=0
If you have any more questions PM me.
Logged

gatotx

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: help with alarms and boss in iwbt engine
« Reply #34 on: April 29, 2010, 05:13:14 pm »

that didn't work either =( may anybody else help me?  :kid:  :fruit:
Logged

Icypizza

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: help with boss in iwbt engine
« Reply #35 on: May 05, 2010, 01:35:11 pm »

idk if it's cuz u didn't check....
Logged
Pages: 1 2 [3]