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

#41
Hi Khris

QuoteIf "making more code instructions" is what keeps you from solving this problem, well...

That is to say I will be looking into doing just that, but, at this stage of this game, I feel it's a bit late to start pussy footing around but I will be looking at the ways to code my own so that I can do it in future games if required.



#42
Hi Crimson Wizard

Yes, I was aware of that option. But, as you said, it would mean making more code instructions and I would rather, at this point, work on something that it tangible, flexible and without too much fuss.

Still, food for another day.

Thanks  8-)
#43
Cheers Crimson Wizard,

It's ok to join the Monkey and Khris brigade, it's how we all learn  :P

Message understood.

Will go over your code.

EDIT: Returns to Interact but no modes... Eventually got it sorted

Thanks very much
#44
Changing the mouse back to Hand Interact after using inventory does not seem to work with this code and returns to Lookat: (unless there is a conflict somewhere?)


Code: AGS
function on_event (EventType event, int data)
{

  if (event == eEventLoseInventory) 
  {
  mouse.Mode = eModeInteract;
  } 
  if (event == eEventGUIMouseDown && mouse.IsButtonDown(eMouseRight) && player.ActiveInventory != null && data == gInventory.ID) 
  {
  GUIControl *theControl = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
  if (theControl==invCustomInv) //the InvWindow
  {
  InventoryItem *i = InventoryItem.GetAtScreenXY(mouse.x, mouse.y);
  if (i == null)
  { 
  player.ActiveInventory = null;  
  mouse.Mode=eModeInteract;
 }
 }
 }
 }


cheers if you could help

#45
Hi

this is my second attempt to put up screen capture. I would like to know the best frames per second to use.
I am using 'Snaggit'

Anyhow, here is the intro (minus gunshots):

[embed=425,349]<embed src="http://www.youtube.com/v/soKCvwCtgEI?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>[/embed]


#46
Sorry about that Crimson Wizard  :-[

Now that you have brought to my attention about 'on_mouse_click' function I see that the answer should lay within?

It obviously just needs adjusting.

QuoteDo you maybe have some "Look at inventory" event handlers for your inventory items?
I have coded 'Look at' inventory items via inventory items events panel shown as 'DisplayAt.'
The problem is to not have it show with right mouse click on inventory item.

QuoteAlso: is your game based on any game template?
No


Code: AGS
function on_mouse_click(MouseButton button) {
  
 
  if (IsGamePaused() == 1)
  {
 // Game is paused, so do nothing (ie. don't allow mouse click)
  }
  else if (button == eMouseLeft) 
  {
    ProcessClick(mouse.x, mouse.y, mouse.Mode );
  }
  else if (button == eMouseRight)  // RIGHT MOUSE ACTION !
  {
  // right-click our mouse-wheel down, so cycle cursor
   mouse.SelectNextMode();  
  }
  else if (button == eMouseWheelSouth)
  {
    // right-click our mouse-wheel down, so cycle cursor
    mouse.SelectNextMode(); 
  }
  else if (button == eMouseMiddle) 
  { 
    // Middle-button-click, default make character walk to clicked area (a little shortcut)
    // Could have been just "player.Walk(mouse.x,mouse.y)", but it's best to
    // leave our options open - what if you have a special script triggered
    // on "walking" mode?
    ProcessClick(mouse.x, mouse.y, eModeWalkto); 
  }
  else if (button == eMouseWheelNorth) 
  { 
    // Mouse-wheel up, cycle cursors 
    // If mode isn't WALK, set the previous mode (notice usage of numbers instead
    // of eNums, when it suits us)...
  if (mouse.Mode>0) mouse.Mode=mouse.Mode-1; 
  else 
  { 
      // ...but if it is WALK mode...
  if (player.ActiveInventory!=null) 
  {
  //...and the player has a selected inventory item, set mouse mode to UseInv. 
   mouse.Mode=eModeUseinv; 
  }
    else 
  {
   // If they don't, however, just set it to mode TALK (change this line if you add more cursor modes)
    mouse.Mode=eModeTalkto; 
   }
   }
   }
   }


cheers

steptoe
#47
Hi Monkey

unfortunately it does not seem to do trick and still shows DisplayAt.

Mmmm
#48
Hi

this type of thing has come up a few times but I am unable to find an exact reference / solution.

Although I don't think it's a big issue I need to ask.

---Disable right mouse click when over inventory window.---

Main reason is that it has been noted and reported that I have an extra description (more detail) of each inventory item as a DisplayAt at bottom of screen as well as @OVERHOTSPOT@ due to lack of space on the gstatusline.

Right clicking on inv item brings up the DisplayAt even though the mouse modes don't go to the next one.

Ideally, I would like to disable Right mouse click if  mouse x mouse y or another way so DisplayAt does not appear when right clicking inv item and only when LookAt is used.

Is there a suitable solution to this?

cheers


#49
Unfortunately my PC won't let me play this game  :(
#50
Love the idea of a star wars type game. I remember the old 90's pc star wars game (whatever it was called.)

Anyhow, I think your graphics are a mesh of what look like photos, cutouts and  blob type characters and not to pleasing to the eye. However, the right combination and usage could make it very good visually (constructive not negative comment.)

Maybe this is what you intend and I expect the images shown are very low res.

All in all, good luck with the project.

#51
Hi Monkey

Point taken. I should have realized.

Still, job done.

Thanks  (nod)

steptoe

#52
Hi

I have just noticed something that really needs putting right.

I have included a sound on/off button and a volume slider control. 

Both these work ok.

However, I now notice that if i adjust slider to say 20 and then turn sound off and then sound back on the slider stays the same but the volume is 100.

Naturally I would like the slider volume level to remain the same after sound off and then sound on.

Obviously the volume reflects in the code, so, something else is required.

Code: AGS
function Bspkon_OnClick(GUIControl *control, MouseButton button)
{
  if (Bspkon.NormalGraphic==1125)
  {
  
 Bspkon.NormalGraphic=1126;
 System.Volume = 0;
 Lsoundonoff.Text="Off";
 }
 else if (Bspkon.NormalGraphic==1126)
 {
  
 Bspkon.NormalGraphic=1125;
 System.Volume = 100;
 Lsoundonoff.Text="On";
 }
 }



Cheers for all assistance

EDIT: This seems to do the trick (at least i'm sure)

Code: AGS
function Bspkon_OnClick(GUIControl *control, MouseButton button)
{
 if (Bspkon.NormalGraphic==1125)
 {
  
 Bspkon.NormalGraphic=1126;
 System.Volume = 0;
 Lsoundonoff.Text="Off";
 }
 else if (Bspkon.NormalGraphic==1126)
 {
  
 Bspkon.NormalGraphic=1125;
 System.Volume = 100;
 Lsoundonoff.Text="On";
 System.Volume = sldAudio2.Value; // ADDED THIS BIT
 
 }
 }


#53
New Splash:





#54
The Rumpus Room / Re: the metal thread \m/
Tue 17/07/2012 17:29:25
QuoteI've been the vocalist (growler) for a death metal/sludge band for some time now, and I love nothing more than to play metal. I've grown up in gothenburg which is a city well known for it's death metal and I have met tons of people involved in the scene.

Are Napalm Death still going? They were big in Germany. I think they started all that. Not a lover myself.

#55
In production

EDIT: some images have been changed since this upload






#56
SPLASH


#57
The Rumpus Room / Re: the metal thread \m/
Sun 15/07/2012 13:11:30
I remember very much the sex pistols being interviewed by Bob? Grundy...

The only punk bands I actually saw live were Newtown Neurotics and Peter and the test tube babies (Brixton UK around 1980).

They were the days  (nod)
#58
The Rumpus Room / Re: the metal thread \m/
Sun 15/07/2012 12:40:43
I saw Black Sabbath on SAT 27 MAY 1978 at Lewisham Odeon, UK.

The gig: Ear scatteringly great 8-)

Heavy metal had already started to rise after their first album.

HM was still fairly new to most people and let me tell you: Nothing hits you quite as hard as HM at full volume.

I remember all to well the young upstarts trying to copy BS... Next to hit me hard was Motorhead (saw them on first tour supporting Blue Oyster Cult)and Metallica,

Long live HM  (nod)

#59
Could you not just use

Code: AGS
mouse.Mode =eModeWalkto; 
after Hotspot events?
#60
GAME BEING TESTED.

SPLASH:


This game is a more serious game than my previous ones but there are a few wisecracks along the way
(Darkman / Freddie Kruger.) A story of a twisted mind hell bent on revenge!!

There is a map on the menu to take you to various locations.

This game sidetracks my previous linear type games and you may need to visit other map locations in order to complete a gang member kill.

You are out to avenge your parents murders by hunting each gang member down (the Endle gang) and killing them. The means of killing them is at times quite graphic! You have / get a variety of weapons such as a baseball bat, dynamite, sleep gas, petrol, ice-cream.......

If dowsing your enemy with petrol and lighting them is your bag then this is for you!

Once you have killed the gang you hunt down the 'Boss' Charlie Endle. He's demise is somewhat shocking!

The main player (The Shadow) is a silhouette. He does not move but he does talk, interact and look.

A definite game to play  8-)

Release possibly by end of month.

Would like to build a team for a possible sequel.
SMF spam blocked by CleanTalk