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: [request] Help with sprites during cinemas...  (Read 1087 times)

0 Members and 1 Guest are viewing this topic.
[request] Help with sprites during cinemas...
« on: August 22, 2008, 11:00:25 pm »
  • Don't Worry Sir, I'm From The Internet.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2339
So, basically, my character keeps dissapearing during cinemas in my game. I have multiple abilites that change the characters appearance, so I have a script: scrVarDeclare() that says what all of the sprites are at each position:
Code: [Select]
if global.player="normal"{
left=sprplayerleft;
right=sprplayerright;
jumpright=sprplayerjumpright;
jumpleft=sprplayerjumpleft;
crouchleft=sprcrouchleft;
crouchright=sprcrouchright
climb=sprplayerclimb
climbstill=sprplayerclimbstill
standleft=sprplayerstandleft;
standright=sprplayerstandright;
leftstill=sprplayerstillleft;
rightstill=sprplayerstillright;
}
if global.player="super"{
left=sprSplayerleft;
right=sprSplayerright;
jumpright=sprSplayerjumpright;
jumpleft=sprSplayerjumpleft;
crouchleft=sprScrouchleft
crouchright=sprScrouchright
climb=sprSplayerclimb
climbstill=sprSplayerclimbstill
standleft=sprSplayerstandleft;
standright=sprSplayerstandright;
leftstill=sprSplayerstillleft;
rightstill=sprSplayerstillright;
}
etc...
 

And then I would have something like:
Code: [Select]
//for the holding left event
sprite_index=left
instead of:
Code: [Select]
//for the holding left event
sprite_index=sprplayerleft

I then put the scrVarDeclare() into my step event.

The problem is that I have in cinemas and such:
Code: [Select]
global.wait=true;
objplayer.sprite_index=standleft;

I think the problem has to do with me disabling the drawing of some sprites during the step event, so that he doesn't change the sprite from what I want it to be during the cinema.

Hopefully, this isn't too confusing,but can someone can help me?
Logged
Grimace is the demiurge, the creator. From him all things in McDonaldland have sprung. He is not a sin, he's not a menu item, he's just Grimace. He exists. He rolls his lidless eyes and flaps his lipless mouth, formless and terrible, a protean idiot thing from the depths of pre-history.
Re: [request] Help with sprites during cinemas.....
« Reply #1 on: August 22, 2008, 11:33:58 pm »
  • *
  • Reputation: +8/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6604
The actions for obj_player in the step event after the scrVarDeclare() are based on the condition that global.wait = false, right? 
Logged
Re: [request] Help with sprites during cinemas.....
« Reply #2 on: August 23, 2008, 03:12:38 pm »
  • Don't Worry Sir, I'm From The Internet.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2339
The actions for obj_player in the step event after the scrVarDeclare() are based on the condition that global.wait = false, right? 
Correct.
Logged
Grimace is the demiurge, the creator. From him all things in McDonaldland have sprung. He is not a sin, he's not a menu item, he's just Grimace. He exists. He rolls his lidless eyes and flaps his lipless mouth, formless and terrible, a protean idiot thing from the depths of pre-history.
Re: [request] Help with sprites during cinemas.....
« Reply #3 on: August 23, 2008, 05:00:53 pm »
  • *
  • Reputation: +8/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6604
Meh, well try changing this:

Code: [Select]
objplayer.sprite_index=standleft
to this:
Code: [Select]
with (objplayer)
{
  sprite_index = standleft
}

or try something like:

Code: [Select]
objplayer.sprite_index = objplayer.standleft
Logged
Re: [request] Help with sprites during cinemas.....
« Reply #4 on: August 23, 2008, 06:18:57 pm »
  • Don't Worry Sir, I'm From The Internet.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2339
Wow! Thanks! You've been a great help!
Logged
Grimace is the demiurge, the creator. From him all things in McDonaldland have sprung. He is not a sin, he's not a menu item, he's just Grimace. He exists. He rolls his lidless eyes and flaps his lipless mouth, formless and terrible, a protean idiot thing from the depths of pre-history.
Pages: [1]   Go Up

 


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



Page created in 0.037 seconds with 47 queries.