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 - barefoot

#281
Hi Monkey

the reason is because an error comes up when i use (eModeHand); for some reason...

Iv'e since discovered that using (eModeInteract); actually works the same as the number you so rightly pointed out to me..  :=

And yes, I am human.. I think  (but not too hard)  ;D  

barefoot
#282
Yep.. this works for me  :=

Code: ags

function repeatedly_execute_always()
{
  GUIControl *gcat = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
  if ((gcat == null) || (gcat.AsButton == null)) mouse.UseDefaultGraphic();
  else mouse.UseModeGraphic(2);
}


cheers Monkey.. Thanks a million...

barefoot

#283
Thanks very much Monkey.. I'll give it a go..

cheers  :=

barefoot
#284
Hi

I'm wondering. mainly because I would like to do this, is it possible to have the mouse cursor change to the hand icon when over any GUI button?

cheers

barefoot



#285
You could try windows movie maker... can do basic slide shows with transitions and text.
Its free. converts to media player video (wmv)..  incorporates before room's load..

barefoot
#286
I actually used:

Code: ags

player.FaceObject(object[1]);


I will note what you put.

cheers again

barefoot

#287
Yes Creator.. brilliant, works.. many thanks..

just need to get char to face object..

UPDATE: Job now done.. :=

cheers

barefoot
#288
Hi

I have set up the below script that works in the global after clicking a button:

Code: ags

 }
   
 if (player.Room== 28) {
     cwizard.FaceLocation(264, 70);
     cwizard.Walk(260, 138, eBlock);
      cwizard.ChangeView(85);
     cwizard.Animate(3, 14, 0, eBlock);
   
     cwizard.ChangeView(3);
     cwizard.Say("My lightning bolt does'nt have any effect on him!!");

 } 
    }


As you can see, the character faces then walks to a location and then changes animation view to 85, does a simple animation and then reverts back to normal view (3) with a Say dialog.

What I am trying to achieve is to not have the character walk but to have the animation run whatever his frame view is.. that is: up, down,left,right. But using the animate character i am having to put a view loop in..  

Is the a good way around this?

I'm looking into while player is at x at the moment if that's any solution?

Ideally to be able to auto walk near to object and change animation view to face object and then fire at object...

Hope my question is understandable.

cheers

barefoot






#289
Hi

UPDATE: What an idiot.. id'e already declared player was in that room so objects must relate to that room.. i think... anyhow.. got it going..   sorry guys  :-\

Here is what I have in case you see something I don't:

Code: ags

function Button16_OnClick(GUIControl *control, MouseButton button)
{
   if (player.Room== 28) {
   if (Game.DoOnceOnly("Killed bird")) {

   SetTimer(1, 0);
   Display("You use levitation");
   cwizard.ChangeView(64);
   cwizard.Walk(259,30, eBlock, eAnywhere);
   cwizard.Walk(259,77, eBlock, eAnywhere);
   Display("You land on top of the bird and squash it!!");
   object[1].Visible = false;
   object[5].Visible = true;
   cwizard.Walk(229,137, eBlock, eAnywhere);
   cwizard.ChangeView(3);
   cwizard.Say("That's taken care of him!!!");

 }
  else Display("You don't need your levitation spell at the moment.");
   }
}  



Scenerio:

I'm in the global script and I have entered events for a button that causes the character to levitate on to an object (obird (object 1) )... The obird is then supposed to change view to a dead bird (possibly some blood) and the character levitates to another position and changes back to normal view..

I have an understanding that's it's not easy to dictate objects in the global...  what do you think would be the best way or doing it in the global in maybe in the Room script?

I'm thinking if character is at a certain x y position then run condition? (not quite sure how to script that).

The below script works but without the obird (object 1)  ChangeView which I have not included:

Code: ags

function Button16_OnClick(GUIControl *control, MouseButton button)
{
  if (player.Room== 28) {

   SetTimer(1, 0);
   Display("You use levitation");
   cwizard.ChangeView(64);
   cwizard.Walk(259,30, eBlock, eAnywhere);
   cwizard.Walk(259,77, eBlock, eAnywhere);
   Display("You land on top of the bird and squash it!!");
   // Here the obird (object 1) changes view
    
   cwizard.Walk(309,75, eBlock, eAnywhere);
   cwizard.ChangeView(3);
   
   
}
}


cheers if you can shove a bit of help this way..

barefoot







#290
Mmm good idea Khris...  it does make sense..   :=

cheers

barefoot
#291
Work is still in progress. Uploading more screen shots...








#292
Cheers Dualnames

this seems to work ok

Code: ags

if (IsTimerExpired(1) == 1) {
    int ran=Random(0);
     if (ran == 0 ) {
    obird.Animate(0, 5, eRepeat, eNoBlock);
    object[4].Move(460, 662, 3, eBlock, eAnywhere);
  
  if (cwizard.IsCollidingWithObject(object[4]) == 1){    
    Display("The bird's claws catch you on the neck!!");
    Wait(1);
    cwizard.Say("Ouch!!");
    object[4].Move(380, 502, 3, eBlock, eAnywhere);
  }
    
    else if (cwizard.IsCollidingWithObject(object[4]) == 0){    
    
    object[4].Move(380, 502, 3, eBlock, eAnywhere);
  }
    SetTimer(1, 100); 
 }
     }


Thank you

barefoot

#293
Hi

I have a series of events that are set off by a Timer in Rep..

These events cause an object (bird) to fly around a scene.

I have 4 different Random options of where the bird fly's to.

This is ok and works as it should.

I have also incorporated a collide with character so should the bird touch the character during one of it's flights a series of events happen as below..

My problem at the moment is that the Display and Say happen even if the bird is not colliding with character.

I'm sure it's a script thing and possibly {}..  ::)

I will study the script again and all help appreciated..

Code: ags


  if (IsTimerExpired(1) == 1) {
    int ran=Random(2);
     
    if (ran == 0 ) {
    obird.Animate(0, 5, eRepeat, eNoBlock);
    object[4].Move(460, 662, 3, eBlock, eAnywhere);
  
    if (cwizard.IsCollidingWithObject(object[4]) == 1)
    
    Display("The bird's claws catch you on the neck!!");
    Wait(1);
    cwizard.Say("Ouch!!");
    object[4].Move(380, 502, 3, eBlock, eAnywhere);
    SetTimer(1, 100); 


barefoot



#294
Hi IceBoty

its 16 bit 640x480...

The views both have 2 frames (same image for each frame)...

the size of the new view is fairly large but not enormously large: 33x20 as opposed the the original snow view of 7x7.

It appears to give an error at the Wait() command. Of course you need it to Wait() for a few seconds so it shows the new view of falling ice chunks before returning to the view of small flakes.

I did reduce the Amount of snow to 10 for the new view.

I will try a bit more on another scene, meanwhile I am using using objects to simulate what i want... but as I have said, I will try it again in another scene.

Cheers IceBoty

barefoot





#295
Hints & Tips / Re: The Secret of Garbh Eileach
Mon 14/03/2011 05:33:57
Quote from: mmenees on Sun 13/03/2011 20:25:25
Quote from: barefoot on Sat 12/03/2011 07:12:30
Hi,

have you gone passed the bedroom doors? tight but you can do it....

orange key i believe..


barefoot

Are you talking about in the bathroom and if so how do you get the key?

Thanks,
Michael

Spoiler
Read the diary.. Something about 'flush and retrieve' is a big clue.. ie flush the toilet..
[close]

barefoot

#296
Quote from: monkey_05_06 on Sun 13/03/2011 21:12:33
Well seeing as you edited your post and placed that pic two minutes after I posted..:P

What line is line 36? If you've commented out the Wait, then where specifically is the error arising?

Hi Monkey

The error occurs in Room 25 Line 36 which is Wait(40);

// out the line usually runs ok but generally shows no flakes so it seems it needs a Wait() to perform snow scene which i want to show large chunks of ice  (view 72) for a couple of seconds instead of the default small flakes (view 51)..

The whole point of raising this issue was that it does work sometimes..

I am playing around with script to try and get it to perform as it should..

cheers

barefoot



#297
Quote from: monkey_05_06 on Sun 13/03/2011 18:12:06
It would probably be helpful to tell us what the error is.

Error screen above..

It takes effect after FadeIn and after a few Says... and its supposed to happen every time you step on a region..

Here is script after FadeIn and with second Wait(40)

Also what do I do about crash dmp file?

Code: ags

 
   oakozos.SetView(72, 0, 0);
   oakozos.Animate(0, 3, eRepeat, eNoBlock);
   cEgo.SayAt(95, 300, 250, "Who are thee that approach my domain!!!!");
   oakozos.SetView(72, 0, 0);
   cwizard.Say("I am Magrid. Wizard to the King.");
   
   oakozos.SetView(72, 0, 0);
   oakozos.Animate(0, 3, eRepeat, eNoBlock);
   cEgo.SayAt(95, 300, 250, "You are forbidden here. Go!!!!");
   oakozos.SetView(72, 0, 0);
   cwizard.Say("Tis your prism I seek!");
   oakozos.SetView(72, 0, 0);
   oakozos.Animate(0, 3, eRepeat, eNoBlock);
   cEgo.SayAt(95, 300, 250, "The prism has been entrusted to me. Prepare to meet your doom with my chunks of frozen ice!!!!");
   oakozos.SetView(72, 0, 0);
  
  
  ShakeScreenBackground (4, 10, 80);
  Wait(1);
  srSetSnowDriftRange(20, 80);
  srSetSnowDriftSpeed(20, 80);
  srSetSnowFallSpeed(50, 200);
  srChangeSnowAmount(50);
  srSetSnowBaseline(100, 200);
  srSetSnowTransparency(4, 50);
  srSetSnowView(0,              0,              51,       0);  
  srSetSnowView(1,              0,              73,       0);                          

  Wait(40);
     
  srSetSnowView(0,              0,              51,       0);  
   
  srSetSnowAmount(0);
  
  Display("The chunks of frozen ice miss you by inches!");
 
 

barefoot
#298
Hi

I // commented the Wait but it still errors now and then...not so much, but it has to be dealt with..   maybe i am in the wrong somehow?

If you dont' have a Wait then the effect does NOT happen..  I need it to happen for about 2 / 3 seconds.

my code is this:

Code: ags

ShakeScreenBackground (4, 10, 80);
  Wait(1);
  srSetSnowDriftRange(20, 180);
  srSetSnowDriftSpeed(20, 180);
  srSetSnowFallSpeed(50, 200);
  srChangeSnowAmount(50);
  srSetSnowBaseline(100, 200);
  srSetSnowTransparency(4, 50);
  srSetSnowView(0,              0,              51,       0);  
  srSetSnowView(1,              0,              73,       0);                          

  //Wait(100);
     
  srSetSnowView(0,              0,              51,       0);  
   
  srSetSnowAmount(0);
  
 Display("Again the chunks of frozen ice miss you by inches!");


ERROR:



Have just // the next Wait... I will check again...  cheers

barefoot


#299
Hi

i am not on my pc will look in laters

cheers

barefoot
#300
Hints & Tips / Re: The Secret of Garbh Eileach
Sun 13/03/2011 12:17:32
Hi

You found it.. great! 

My next game for release is more better scripted and Bigger... and Better  :=

barefoot
SMF spam blocked by CleanTalk