AGS Awards nominations close at 13:59 GMT on Saturday 10 February 2018. You haven't yet nominated, so you've got 18 days and 10 hours left to play the games and decide which to nominate!

Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.


Messages - Slasher

Pages: [1] 2 3 ... 109
1
touché (laugh)






2
Jack 'stuck', surely  not, vicar (laugh)

Stuck with what?

3
My entry (Fallen Hero) is 90% finished with the help from Cassiebsg (nod)

4
Cheers Crimson

I'll give it a whirl...

thans

5

Top of global
Code: Adventure Game Studio
  1. int lbs = Weight_Ozs / 16; // how many full lbs are there
  2. int osz = Weight_Ozs % 16; // how many osz remaining
  3.  

Rep exe always
Code: Adventure Game Studio
  1.  
  2.   LWeight.Text = String.Format("%d", lbs);
  3.   LWeightOZ.Text = String.Format("%d", osz %16);
  4.  


Originally in Global button function
Code: Adventure Game Studio
  1. function Button6_OnClick(GUIControl *control, MouseButton button)
  2. {
  3. if(Button6.NormalGraphic==7){
  4.   Button6.NormalGraphic=8;  
  5.   Weight +=3;
  6.   Weight_Ozs +=2;
  7.   Axe=true;
  8.   }
  9.   else if(Button6.NormalGraphic==8){
  10.   Button6.NormalGraphic=7;  
  11.   Weight -=3;
  12.   Weight_Ozs -=2;
  13.   Axe=false;
  14.  }
  15. }
  16.  




6
To all buttons (variant values)

Add / Subtract values

Code: Adventure Game Studio
  1.  
  2. function Button6_OnClick(GUIControl *control, MouseButton button)
  3. {
  4. if(Button6.NormalGraphic==7){
  5.   Button6.NormalGraphic=8;  
  6.   Weight +=3;
  7.   Weight_Ozs +=2;
  8.   Axe=true;
  9.   }
  10.   else if(Button6.NormalGraphic==8){
  11.   Button6.NormalGraphic=7;  
  12.   Weight -=3;
  13.   Weight_Ozs -=2;
  14.   Axe=false;
  15.  
  16. }
  17. }
  18.  

7
error


Code: Adventure Game Studio
  1. int lbs = Weight_Ozs / 16; // how many full lbs are there
  2. int osz = Weight_Ozs % 16; // how many osz remaining
  3.  

GlobalScript.asc(7): Error (line 7): Expected integer value after '='


And the line 7 is?...
Do you have variables with same names used already anywhere? Is Weight_Ozs defined before this code?

global pane
in all the button that add subtract ozs..:(



8
error


Code: Adventure Game Studio
  1. int lbs = Weight_Ozs / 16; // how many full lbs are there
  2. int osz = Weight_Ozs % 16; // how many osz remaining
  3.  

GlobalScript.asc(7): Error (line 7): Expected integer value after '='

9
Beginners' Technical Questions / Maths expert required...
« on: 17 Jan 2018, 15:41 »
Hi

I have a maths problem that needs solving...

Code: Adventure Game Studio
  1.   LWeight.Text=String.Format("%d",Weight);
  2.   LWeightOZ.Text=String.Format("%d",Weight_Ozs);
  3.  

It's lbs and ozs.

16ozs equals 1lb

I have it so that when ozs reaches 16 then lbs go up by 1.

What is NOT happen is any remainder ozs should stay in the ozs label.

Ex

 1lbs 9ozs then you add 8ozs which gives 2lbs 1oz.

I am loosing the 1oz so labels show 2lbs 0ozs

Maths expert required...

EDIT
Trying this

Code: Adventure Game Studio
  1.  if(Weight_Ozs>=16){
  2.  Weight_Ozs-=16;
  3.  Weight+=1;
  4.  

EDIT
Can end up with - ozs!

aghhhhhhhhhh




10
I wish I could take part in this, but a lot is going on.

I do hope to take part in the February MAGS if one does take place then.

Best of luck to this current one.
The Topic will be mine... So hold on to your britches (laugh)



11
Editor Development / Suggestion
« on: 16 Jan 2018, 08:43 »
It would be good to 'Show this room's': Everything - as an added option..

12
Come on Mandle, you know you want to (laugh)

Anyone else participating besides me and possibly Jack?

We don't need another one horse race (laugh)

13
Jack be nimble Jack be quick....

Why shouldn't an action game fit into the theme? I can think of a few...

14
Advanced Technical Forum / Re: Illegal exception error
« on: 12 Jan 2018, 11:21 »
Line to top all ok... it was missing elements like below...

Of course a lot of graphics became blue cups, cursors blue cups etc etc

I have managed to re import them back.. and game is back on...

15
Advanced Technical Forum / Illegal exception error
« on: 12 Jan 2018, 09:48 »
Electric went and now trouble with age:

Error

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x0041E7F9 ; program pointer is +3330, ACI version 3.4.0.14, gtags (2,2)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and post the details on the AGS Technical Forum.

in "room2.asc", line 23


Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.

An error file CrashInfo.dmp has been created. You may be asked to upload this file when reporting this problem on the AGS Forums. (code 0)
---------------------------
OK   
---------------------------


any ides?

cheerd

16
My Game is titled: Fallen Hero..

Cassiebsg: Sent you PM...

17
Hi Stu,

If I can slip in a few hours between 3 other games this month I'll be in for sure (nod)

18
The Rumpus Room / Re: Slasher's Corner
« on: 04 Jan 2018, 16:15 »
Is there a reason you didn't use loops 4-7 for diagonal movement?
That could be a work-in alternative...

Cheers

19
Hi

If, like me you are not much good at drawing walkcycles but you have managed to obtain/create a Left and Right walkcycle then do not despair.

I use this neat trick to cover both Up and Down walkcycles. With carefully placed walkable areas and mouse coordainates you can give the illusion of the walk Up Down loops....It's not quite like the real thing but the illusion can work quite well in most cases.

You will need to create two Views for the character.

Let's call this View 1


and this one View 2


What this does is change the way the Character Faces when walking Up/Down.

If The Character is Facing Left and he walks Up and to the Left he remains Facing Left.

If The Character is Facing Right and he walks Up and to the Right he remains Facing Right.

It's the same for the Down Loops.

The change of these Views is conditioned by the mouse.x coordinates compared to player.x.

Lastly add this to top of Global.asc script

Code: Adventure Game Studio
  1. function on_event (EventType event, int data)
  2. {
  3.   if (event == eEventEnterRoomBeforeFadein)
  4.    // Amend player to your player's script Name.
  5.   if(player.View==1 && mouse.x <=player.x-1){    //Right loop.... mouse/player.x amend to suit
  6.   player.ChangeView(2);
  7.  } else if(player.View==2 && mouse.x >=player.x+1){   //Left loop... mouse/player.x amend to suit
  8.   player.ChangeView(1);  
  9.  

I think I have typed this in correctly (roll)

Anyhow, I have used this a few times and it works ok....

If you know a better way I would like to hear from you.

Plus if people try this I would like to hear from you also.

Slasher


20
The Rumpus Room / Re: Happy Birthday Thread!
« on: 03 Jan 2018, 17:05 »
***Happy Birthday Creamy***

Do make 2018 a fantastic year and may all your problems be small ones (laugh)

Pages: [1] 2 3 ... 109