Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Virgil

#61
See, I thought I had it right, but I guess not. I know about the declaring but I must have misread the forums. Anyways, fine, thanks.
#62
I've looked around in the forums, and for some reason I still get the same problem. I want to change a button's normalgraphic on the click of another button.

when i do something like: int button.NormalGraphic = 1;

I get the error "Expected ',' or ';' not '.'

Obviously if I change to a comma it won't run.
#63
No, there have been dumber questions, and in the past day or two as well. I would think you would have more control with a movie with timing and pauses, instead of just plain frames. It'll also be easier just to make the movie than going in with sprites and doing trial and error.. I would think anyway.
#64
 ;)

Simply what I have planned. Though I most likely won't use it. Thanks for you help anyway.
#65
Yes, I know about that, but it wouldn't have worked for what I have planned.

In fact I may not even have to use this, its more of a contingency plan. I still learned something though.
#66
Oh, that works great. I suppose the only hitch is that the screen shutters since its longer than the viewport. Oh, well, I don't think there's anything I can do about it.
#67
I want to have a setting so that a player can't leave a region. I've done some fiddling around with global boolean variables and cCharacter.Stop Moving, but when I try to leave, it just stops, then I can continue on. Surely there must be a way to totally prevent a character from leaving a region?
#68
You're right. Maybe I was over thinking things.. I suppose I never noticed.
#69
Beautiful, thanks a lot.
#70
Okay, so, say in a side scroller, when my characters stops walking, I want him to stand in a specific pose, so he's not midstep.

I have this in..

Code: ags
function room_AfterFadeIn(){
  
  if(!IsKeyPressed(eKeyLeftArrow) || !IsKeyPressed(eKeyRightArrow)){
    cCharacter.Say("Done.");
   }
 }


Just to check if the character was moving or not. After that I would just do an Animate with one frame in it, until the character decided to move again. However, when I load up my room, the character says 'Done.' When I move around and stop, it doesn't respond. If I have it on Repeatedly Execute, I can't move at all, and the character just says 'Done."

I know there's a way to go about this, but I can't figure it out.. thanks for any help.
#71
Ah, okay, yeah I understand how to use the ellipses and everything, but didn't know you couldn't paste in code. Not that I was, but okay.

I do have a display call, but its in AfterFadeIn, and I don't even have room_Load being affected. I've taken out that display call, and still nothing. But I will keep playing around with it. 

My color depth is a 16, and I've tried it with other default sprites (like the inventory buttons), with no difference. But it did work with another sprite. Excellent.. wow, this whole deal with Roger has given me a lot of trouble. Thanks for all your help Khris.
#72
Okay, when I press space in the regions, it gives me 'light level at -20' and further, since I tested a few regions. But it doesn't seem to affect the EGO character moving around.

Ah, so, in linking a function, you paste the Light Level script in the box next to 'enters room after fade-in'? Or in the script itself?

Thanks for your help.

Oh, another quick thing. When I open up the game to test it, the screen stays black until I press a key or mouse button. What's causing this?
#73
What do you mean by linking the functions? I think that may be the problem. But if I just set it in the region without setting it in the script, shouldn't it automatically work?

Thanks for all your help.
#74
Yes, I checked before I posted here. When I tried (and failed) with the object, it was also set to use area lighting as well.
#75
Hm.. okay, thanks, but it still isn't working. I tried putting in negative numbers into the region panel, and putting in LightLevel in the room_Load and room_AfterFadeIn, and none seem to work. I am still using the Roger sprites, if that makes any difference..
#76
I've checked through the manual and script index for the game, as well as a few topics on the forums, and for the life of me, I cannot get region lighting to work. I set the lighting variable for the region, but it doesn't seem to have any affect on objects or characters in the region. When I try to script the light level in, it always returns as an error.

I know this is a simple concept, but for some reason I can't grasp it. Thanks for any help.

For reference, when I script:

Code: ags
region[1].LightLevel = 20;
SMF spam blocked by CleanTalk