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

#201
Hi Slasher.

After looking at the Script you showed, it got me thinking.
Messing around with your script I finally ended up with this...
Code: ags
function room_RepExec() {
  
  // SCARE SCRIPT.
  //---------------------------------------------------
  // If the GHOSTS or other CREATURES collide with EGO,
  // they SCARE him.
  if (AreThingsOverlapping(ZOMB, DAN)) {
    UpdateHeartGUI(-40);
    aScream.Play();
    cDan.StopMoving();
    Wait(40);
    aScream.Stop();
    
    if (UpdateHeartGUI(-0) == 0){
      QuitGame(0); // More stuff happens before Quit
    }
  }

  if (AreThingsOverlapping(ZOMB2, DAN)) {
    UpdateHeartGUI(-40);
    aScream.Play();
    cDan.StopMoving();
    Wait(40);
    aScream.Stop();
    
    if (UpdateHeartGUI(-0) == 0){
      QuitGame(0); // More stuff happens before Quit
    }
  }
  
  if (AreThingsOverlapping(ZOMB3, DAN)) {
    UpdateHeartGUI(-40);
    aScream.Play();
    cDan.StopMoving();
    Wait(40);
    aScream.Stop();
    
    if (UpdateHeartGUI(-0) == 0){
      QuitGame(0); // More stuff happens before Quit
    }
  }
  
  if (AreThingsOverlapping(GHOST, DAN)) {
    UpdateHeartGUI(-20);
    aGhostly.Play();
    cDan.StopMoving();
    Wait(40);
    aScream.Stop();
    
    if (UpdateHeartGUI(-0) == 0){
      QuitGame(0); // More stuff happens before Quit
    }
  }
  
  if (AreThingsOverlapping(GHOST2, DAN)) {
    UpdateHeartGUI(-20);
    aGhostly.Play();
    cDan.StopMoving();
    Wait(40);
    aScream.Stop();
    
    if (UpdateHeartGUI(-0) == 0){
      QuitGame(0); // More stuff happens before Quit
    }
  }
}
  // END OF SCARE SCRIPT.
  //---------------------

function repeatedly_execute_always() {
    // This section makes GHOSTS and other CREATURES move.
  //----------------------------------------------------
  if (!cZomb.Moving) {
    if (cZomb.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cZomb.Walk(600, cZomb.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left
        cZomb.Walk(34, cZomb.y, eNoBlock, eAnywhere);
      }
  }
  
  if (!cZomb2.Moving) {
    if (cZomb2.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cZomb2.Walk(605, cZomb2.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left.
        cZomb2.Walk(34, cZomb2.y, eNoBlock, eAnywhere);
      }
  }
  
  if (!cZomb3.Moving) {
    if (cZomb3.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cZomb3.Walk(600, cZomb3.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left.
        cZomb3.Walk(34, cZomb3.y, eNoBlock, eAnywhere);
      }
  }
  
  if (!cGhost.Moving) {
    if (cGhost.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cGhost.Walk(582, cGhost.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left
        cGhost.Walk(34, cGhost.y, eNoBlock, eAnywhere);
      }
  }
  
  if (!cGhost2.Moving) {
    if (cGhost2.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cGhost2.Walk(600, cGhost2.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left.
        cGhost2.Walk(34, cGhost2.y, eNoBlock, eAnywhere);
      }
  }
}
  // END OF GHOST AND CREATURE MOVEMENTS SCRIPT.
  //--------------------------------------------


Now when a Ghost or other such nasty beastie collides with character he stops and screams, Only once, the meter goes down and then you continue along your merry way.
This may not be the prettiest way or even the correct way but it seems to work, to a fashion.

If anyone knows of a better way then please enlighten me.:)

Thank you Slasher for giving me the Idea, much appreciated.

Yours.
Jay.
#202
Hi Ghost.

Sorry, but after hours of tinkering with Audio Channels the sounds still plays over and over.
Although it must be said that I don't really understand what you mean. :-[

Thanks for your help, Though.

Yours.
Jay.

#203
Hi Ghost.

Thanks.
I will try that, if I can work out what you mean, Tomorrow or Today, as it is now.
Please forgive me. My Brain hurts.???

When I'm firing on all eight cylinders I will let you know how things went.

But the rest of what I have done looks ok, Yes?
Or can I accomplish what I am after a better way?

Yours.
Jay.
#204
Hi Peeps.

I have a problem, anyone who knows me would agree.(laugh)
This, however, is a Scripting problem.

In one room I have a number of creatures, on different levels, that walk from left to right and back again, repeatedly.
If any one of these creatures touches the 'Player Character' then a point is deducted from a 'Meter' until the meter is empty.
This is where the player runs away screaming, in theory.

I have created a 'Sanity Monitor' using a GUI and a 'Button'.
The buttons image is the meter and is set to 'Clip Image'

I have created a 'Global Variable' called 'number_of_hearts' an INT set to 218.
In 'Global Script ash' I have...
Code: ags
import function UpdateHeartGUI(int change);

At the very top of 'Global Script asc' I have...
Code: ags
function UpdateHeartGUI(int change) {
number_of_hearts += change;
if (number_of_hearts < 0) number_of_hearts = 0;
if (number_of_hearts > 218) number_of_hearts = 218;
btnHearts.Width = number_of_hearts * 1;
return number_of_hearts;
}

In my 'Room Script' I have...
Code: ags
// room script file

function room_FirstLoad() {
  aWelcome.Play();
}

function room_Load() { 
  // This disables MOUSE controls.
  //------------------------------
  mouse.Visible = false;
  cDan.FaceLocation(0, 360);
  aMystery.Play();
}

function room_RepExec() {
  // SCARE SCRIPT.
  //---------------------------------------------------
  // If the GHOSTS or other CREATURES collide with EGO,
  // they SCARE him.
  
  if (AreThingsOverlapping(ZOMB, DAN)) {
    aScream2.Play();
    if (UpdateHeartGUI(-2) == 0){
      QuitGame(0);
    }
  }
  
  if (AreThingsOverlapping(ZOMB2, DAN)) {
    aScream2.Play();
    if (UpdateHeartGUI(-2) == 0){
      QuitGame(0);
    }
  }
  
  if (AreThingsOverlapping(ZOMB3, DAN)) {
    aScream2.Play();
    if (UpdateHeartGUI(-2) == 0){
      QuitGame(0);
    }
  }
  
  if (AreThingsOverlapping(GHOST, DAN)) {
    aGhostly1.Play();
    if (UpdateHeartGUI(-1) == 0){
      QuitGame(0);
    }
  }
  
  if (AreThingsOverlapping(GHOST2, DAN)) {
    aGhostly1.Play();
    if (UpdateHeartGUI(-1) == 0){
      QuitGame(0);
    }
  }
  // END OF SCARE SCRIPT.
  //---------------------
  
  // This section makes GHOSTS and other CREATURES move.
  //----------------------------------------------------
  if (!cZomb.Moving) {
    if (cZomb.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cZomb.Walk(600, cZomb.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left
        cZomb.Walk(34, cZomb.y, eNoBlock, eAnywhere);
      }
  }
  
  if (!cZomb2.Moving) {
    if (cZomb2.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cZomb2.Walk(605, cZomb2.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left.
        cZomb2.Walk(34, cZomb2.y, eNoBlock, eAnywhere);
      }
  }
  
  if (!cZomb3.Moving) {
    if (cZomb3.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cZomb3.Walk(600, cZomb3.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left.
        cZomb3.Walk(34, cZomb3.y, eNoBlock, eAnywhere);
      }
  }
  
  if (!cGhost.Moving) {
    if (cGhost.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cGhost.Walk(582, cGhost.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left
        cGhost.Walk(34, cGhost.y, eNoBlock, eAnywhere);
      }
  }
  
  if (!cGhost2.Moving) {
    if (cGhost2.x < 100) {
      // If the Ghost is on the left hand side of the screen,
      // start it moving towards the right.
      cGhost2.Walk(600, cGhost2.y, eNoBlock, eAnywhere);
      }
      else {
        // Otherwise, move it towards the left.
        cGhost2.Walk(34, cGhost2.y, eNoBlock, eAnywhere);
      }
  }
}
  // END OF GHOST AND CREATURE MOVEMENTS SCRIPT.
  //--------------------------------------------


This works just fine... However.
The audio files that I have within my room script play over and over again.
Obviously this is because they are within the 'Repeatedly Execute' section.
I don't know how to cure this.

I have tried many ways of getting the sound files to play outside of 'Repeatedly Execute'.
My game Compiles but no sound is played when the character collides with an NPC.

If anyone can see my error or even a better way to do what I am trying to do then please help.
I have been trying to do this for the past week now, without help, and have got nowhere.

Yours.
Jay.   
#205
Hi LimpingFish.

Yeah.
I know what you mean, it could be one of a hundred things.

As far as I can tell, it's not a sticky Windows key.

I have taken a look at his Machine, gone through as many things as I could think of.
As far as I can see there is nothing that should be causing the problem... However.
I haven't tried running his games in a window, yet.

I'm sure that he said it started happening after he installed 'Reckoning - Kingdoms of Amalur'.
I can't be sure of this, though, until I speak with him again.

Thanks for your help.

Jay.

P.s
I do know that Microsoft are supposedly bringing out another update for Windows 8.1 in September (8.1.2), which is meant to correct more issues.
#206
Hi all good peeps.

My Brothers Windows 8.1 machine seems to have developed another strange and un-explained oddity.
For the last two days now, games that were running fine now keep minimizing to the Taskbar.
He clicks the game in the Taskbar and it opens up full screen again.

Searching the Web hasn't helped, or shed any light on the problem.
He hasn't installed any new programs lately, his wallpaper is static and all drivers are up to date.

I said to him that I would ask the, knowledgeable, people here to see if anyone can help.

Here is a chance for one or many of you to shine.:)

Yours.
Jay.     
#207
Hi Mouth for War.

I wouldn't mind trying "Foxworth's ring madness", your game...but.
How do I get it?

Yours.
Jay.
#208
Hi All.

My Bro purchased two games recently - 'Captain Morgane and the Golden Turtle' and 'Yesterday'.
Neither of them would run on his Windows 8.1 machine.
After much searching we finally found an article on Microsofts site regarding Starforce Protection, stopping games from starting (if that makes sense):-\

Any way, Just wanted to let everyone know that these two game are working a charm now.
All you have to do is download and install update KB2930157 for Windows 8.1.
The update was released on the 10th of March this year and addresses the starforce protection issue.

Thought that I would mention this as It may be helpful to someone else.

Yours.
Jay.
#209
Hi Brother Ponch.;)

Same here.

After making 'The Lost Prince Of Lorden' (Shameless Plug)(laugh)
I went through it again and re-scripted the entire thing again using proper code before uploading it.

I am currently trying to create the second part of my game and am pulling my hair out over the hideous audio system 3 has.>:(

Also I am wondering why I am bothering with 3 at all as colleagues at work and family are playing my first game with no problems on windows 7 and 8 and 8.1.

Why can't we just go back to 2.72 and build on that version? It worked. (please excuse my ignorance on programing matters).



#210
I know that opinions are like assholes... everyone has one...but.

AGS was originally designed to create 'old style Point And Click adventure games' right?

I started with 2.72 which done a damn fine job of fulfilling a goal I had wanted to accomplish since the ZX Spectrum, but had no scripting knowledge.
The editor taught me HOW to script, this was sorely missed in 3.0.

Had I started using 3.0. I would probably have given up right then and there, like many other so called 'Game Makers'.

Now everyone wants 3D graphics, better sound, higher res and all of the other shit that makes crap games of today like...
'Oh! can I knock that box over... WOW!... yes I can. (how exciting!).

My point.
Have you all lost sight of CJ's dream of creating Retro games?
I thought it was why we all downloaded AGS in the first place... wasn't it?

I know that my opinion won't matter, just read my avatar.
#211
He who goes to bed with itchy bum, wakes up with smelly fingers.
- Confucius (laugh)

Anyway, DON'T PUSH THE BUTTON.

Jeez! Has the Human race learnt nuffin.

Having said this...
I Pushed the button 173 times.
Got bored, hoping for world annihilation... Pressed ESCAPE and hung myself using a G-string from my guitar.
#212
Hi Armageddon.

You are so right. It is a good game but it has been totally spoiled.
As it stands at the moment it is unplayable due to crashes .

We tried compatibility mode for XP and all of the others and no change.

Yours.
Jay. 
#213
Hi Snake.

I am so sorry to hear about the passing of Amy.
I feel terrible about posting above your post, but I didn't see it until I had already done so.

My condolences on your loss.
My thoughts are with You and your Family.

Yours.
Jay. 
#214
Hi nihilist.

Yeah. That's the thing, you see.
It's been ported across from the PS3 and they have made a complete monkeys rectum of it.
Sadly it would appear as if the company that made it has no intentions of sorting it out.
E-mailing them gets you nowhere.

Oh well, just have to persevere with it until someone else releases a patch.

Yours.
Jay.
#215
Hi All good peeps.

Yes tis I RetroJay.
I am still here, lurking in the shadows and working hard on 'The Lost Prince - Part 2'.

I want to ask you all a question. (for my Brother)

Has anyone here played 'Deadly Premonition - The Directors Cut.'
My Bro got it recently but is having trouble playing because it keeps crashing.
We have searched the web and other people are having the same issue with it.
There is a fix called 'dpFix' but this has no effect on the crashing problem whatsoever.
He has also tried other suggestions, found online, to remedy the issue but sadly none work.

It's not a fantastic game to look at, the coding seems a bit botched and it's just weird but there is a certain something about it that we like.
If anyone here has found a solution to the problem we would be most grateful.

Yours.
Jay.
#216
Hi Slasher.

Congratulations on the release!

Like CaptainD I also played it pre-release and I think that it is a damn good game.

I am downloading now to play the complete version as at the time I only played one part, over and over again.(laugh)
Looking forward to seeing what happens...
Will I ever get back home or be lost to the infinites of space forever?:~(

Jay.
#217
Hi Slasher.

This looks GREAT!
I can't wait to play.

PM-ing you now.;)

Jay.
#218
Hi Peeps.

I need your help.

Just the other night my Nvidia card died on me.
I uninstalled all the drivers and programs that came with it and fitted an ATI Radeon along with all of its programs and drivers.

All seems to be just fine, apart from having to go into safe mode to get rid of the 'NVIDIA Corporation' folder from 'Program Files'.

I am left with one annoying prob.
Within 'Control Panel' I now have 'NVIDIA Control Panel' (This doesn't work anymore and so is a dead shortcut icon I assume).
My question is... How the hell do I get rid of the 'NVIDIA Control Panel' from Windows 7 Control Panel.

I have searched and searched some more on line but can't find an answer. ???

Yours.
Jay.
#219
Hi Khris.

Well I'll be damned.

I just came to tell everyone that my Bro has resolved the problem by finding this article here: http://steamcommunity.com/app/57400/discussions/0/810922863429912277/

It turns out that it's exactly the same cure as you have already done with your own copy of Batman.
When everything worked and Windows Live signed him in he got so excited that I thought he was going to piss his pants. (laugh)

Thanks for all your help and time spent looking.

Yours.
Jay and Bro.
#220
Hi Khris.

Thanks for that link.
We followed the instructions to the letter but sadly still no joy.

Just thought that I would mention that he didn't buy 'Batman' through Steam.
He purchased the boxed version.

The game starts but GFW Live sign in screen doesn't appear.
He can still play the game but it's pointless to do so as he can't save his progress.

Thanks for your help.
Jay. 
SMF spam blocked by CleanTalk