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

Topics - madradubhcroga

#1
Hi,

Search isn't working right now.

I want to change a variable based on what room the player is in.

Code: AGS

function Button5_OnClick(GUIControl *control, MouseButton button)
{
  if (cEgo.Room(4)== true){
    int Ascore +=1;
cEgo.ChangeRoom(2);

}


the above isn't working, because 

Parse error in expr near 'cEgo'

Any suggestions?
 
#2
Hi,

I need some InStructions!

I'm trying to make my first Struct -  to make a database of questions.

in Globalscript.asc I have

Code: ags


Question question[50];


struct Question {
  String q; //The question
  String ans[4]; //The answeres, from ans[0] to ans[3]. You could make 4 seperate variables, I preffer arrays
  int RightAns; //Number of the correct answere;
  int catagory; //Say 1 = Nature, 2 = Poltics etc.
};




Question question;
question. = ("Cé hé seo?");
question.ans[4] = ("Ronnie Drew");
question.RightAns = ("Ronnie Drew");
question.catagory= 1;



The error I get reads

GlobalScript.asc(61): Error (line 61): Parse error: unexpected 'Question'

line 61 is the first line of code above.

I don't really get the concept of struct yet- and probably won't until I've done a few.

???

Pointers appreciated.   
AnMDC

#3

Hello.


This might not be the right forum for this post.
Arguably, this might not be AGS appropriate at all.

I want to make a 4 player quiz game, a bit like 'buzz' for the ps2.

Here's how I see it:

Room 1:  select number of players, 1-4.

Room 2: shows a simple checkerboard with the players lined up on the left.  (actually the players are objects. cEgo is only used to change room) and the finish-line on the right.

The keys Q,Z,P and M act as the players' buzzers.

A question pops up in a GUI. If player 1 presses his buzzer first, another GUI appears, with 4 possible answers to the question, and the player's portrait above.  If he is correct, he moves forward one square. If he is wrong, he moves back one square.

More sophisticated challenges (solving a maze on a timer/ identifying a tune etc) take place in subsequent rooms.

The first player to make it to the right edge of the board is the winner.

Screenshot here :


http://madradubhcroga.blogspot.com/2012/05/blog-post.html


That's the plan, in general. 
My main concern is getting the architecture right at the beginning, so I can upload engaging content as I create it.
Another issue is how to arrange categories of questions, and randomize within those categories.

Does anybody have any thoughts on this?  Or on the project in general?

Discussion and ideas appreciated.
#4
Beginners' Technical Questions / Timelimit bar
Wed 16/05/2012 22:29:29

Hi.

Does anybody know how to make a bar that gets shorter as the time runs out?

I'm looking at the "Topic: How to make a bar that shows an int value?"

and I think half the answer is there... but I don't quite understand it/how to adapt it.

Eg: 10 seconds = full bar (unclipped image)
        5 seconds = half bar (50% clipped)
        1 scond    =  10% bar


thankyou
#5

Hi everybody.

I'm getting the hang of AGS, and I like it very much.
But I'm going to put my Adventure Game project on hold:
I want to make a 'quiz' game using AGS.

I think it'll be good, with trivia categories, reflex based games, puzzles, picture, memory, and audio challenges.

But there are distinct technical issues.


The big one is making databases to hold categories of questions, and difficulty levels of those questions.

I'd like to represent the category selection as a big spinning 'wheel of fortune' so not quite random but rather the wheel slows to a stop on a category (eg 'Animals').  Then Animals appears on the Question Map(GUI), with  10 20 30 40 and 50 point buttons (randomly from the relevent databases).  They spin the wheel again and so on until the Question Map(GUI) looks like this:



animals music mystery literature
10       10     10      10         10
20       20     20      20         20
30       30     30      30         30


Like in 'Jeopardy'
I want the player(s) to be able to select a question (EG Animals, for 30 points).  Then the computer should select an Animals question randomly from the correct database of 30 point animal questions.

I think I can just about make that happen.  But does anybody know the best way to proceed?  I don't see how to make it easy to go back and upload more questions when the structure is in place. Assuming I get that far. without haduken-ing my monitor.

I don't mean to make someone else do all the work for me;
but collaborators opinions and colossal insights are all alike welcome.

#6


Hi all.


Hard to articulate this question -

I want to make a trigger in room_RepExec() that activates something else.
Like:

room_RepExec()
{


if (object[1].Visible == false){
// then [1]
}
}


where

[1] is:

gGui12.Visible = true;
cChar3.move(222,333);
and other stuff.

Is there a name for this kind of set up?
How is it phrased and where would the [1] be defined for the computer and where should it go in the code?
(I've found it can't go in the room_RepExec() because sounds stutter, gGuis flicker and mouse pointers disappear.)
#7

Hi.

I have a book and quill in my inventory.
They can be clicked to open another GUI.
I'm having to click a bunch of times on the book/quill to get the new GUI to appear.

It feels like it's using the "Inventory items cursor hotspot" to decide what counts as a valid click.
But that area is way too small.  I want the player to be able to click one time, anywhere on the image.
Any suggestions?

Regards
MDC
#8
Hi.
I may deserve a slap for asking this, but:


Where is the 'Room message editor?'

Context:

I want what the character says when looking at an item to appear beside a GUI in the top right corner of the screen, like this:


+++++++++++++++++++++++++++++++++++++++++
+  @@                                                                                +
+ @@@   "A sword hangs over the fireplace."                   +
+  @@                                                                                +
+                                                                                        +
+                                                                                        +
+                                                                                        +
+                                          -                                             +
+                                       P                                               +
+                                                                                        +
+                                                                                        +
+                                                                                        +
+++++++++++++++++++++++++++++++++++++++++



Manual says use DisplayMessage(x);
Where x  =  the line in the Room message editor.
But where is it?
#9
Hi.

Context of Problem:

Our hero enters a dimly lit room.  He goes over to the window, and throws open the curtains.
Now the room is brightly lit.

Problem:
How to change the room BG without moving everything to another room?
If it's not possible then how does one stop 'picked up' items from being duplicated in the new room?


Best Regards

MDC


(I bet this has been asked many times, but the search button is telling me "Your search query did not return any matches" for everything.  Maybe a problem with the forum upgrade.)
#10
Hello.

Context of problem:
The player is flying across the screen from left to right.
coins and fruit drift the other way.

When the player intercepts a coin or fruit, it disappears and he gets some points.

The Problem:

This was working fine, until I changed the player's view. 
Now he can only pick up the coins. The fruit is untouchable.

The coins are characters, the fruit are objects.  (Because learning.)

Any idea what's astray?




*Edit*

I tried changing the player view back to the original place-holder graphic.  He still can't intercept the fruit.  So I must have changed something else.  I'll keep fiddling with it- but I guess my question now is, what's wrong with this:


function room_RepExec()
{
 
  if (cCharacter.IsCollidingWithObject(object[0])){
   
   GiveScore(400);
object[0].Visible = false;
}



....}


Regards

MDC



#11
Hello.

My game starts with a (playable) dream sequence:

Player has wings and is flying across the sky collecting coins.
I want clouds to scroll from right to left to suggest the player's left to right motion.
I've imported 3 clouds as characters.
Here's what I've written:


function room_AfterFadeIn()
{
cCloud1.Walk(-160, 372, eNoBlock, eAnywhere);
cCloud2.Walk(-260, 448, eNoBlock, eAnywhere);
cCloud3.Walk(-160, 581, eNoBlock, eAnywhere);


   
 
}

function room_RepExec()
{
SetTimer(1, 1200);
if (IsTimerExpired(1)){
  cCloud1.ChangeRoom(2, 914, 372);
    cCloud1.Walk(-200, 372, eNoBlock, eAnywhere);
    cCloud2.ChangeRoom(2, 1314, 448);
   cCloud2.Walk(-260, 448, eNoBlock, eAnywhere);
   cCloud2.ChangeRoom(2, 908, 581);
cCloud3.Walk(-160, 581, eNoBlock, eAnywhere);
SetTimer(1, 1200);


Can anybody tell me what I've done wrong? 

Thanks.

#12
Beginners' Technical Questions / Best Practice
Thu 01/03/2012 19:18:48
Hello.

I think I get how AGS works, at least the basics.

I'm serious about making games with AGS, but theres so much to do!  I keep getting overwhelmed.

Is there a logical sequence that should be followed?

Is there a 'best practice' for making a game from start to finish?

regards

MDC
#13
Hello.

First time trying to run a GUI,  I got an 'Illegal exception' dialogue box.

"An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x0043FBE7' program pointer is +379, ACI version 3.12.1074, gtags(37,0)

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

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)"


best regards,
Madra Dubh.
#14



Hi there.  It's 4.36 am, and I've work in the morning.  But You know what it's like; I'm buzzing with my AGS dream, so I'll write this then send myself to bed. 

Yeah, AGS, I'm a fan. I made one short game for my degree show at art school that was about a year ago.  Didn't blow their brains right out the back of their heads like I'd hoped to, but the concept was right and I'm still working on it.

I kept the idea secret till now, foolishly worrying some other chap might stealing it.  That’s daft for many reasons, here are 2 of them: 
1.  I'd love to see this idea happen, way more than I want credit for it.
2.  It will be impossible without all kinds of help, on and off AGS.

So I'd like to talk a little about this game I'm working on, (provisionally) called 'Banshee', but first a little context.

(Like I said, it's late and I'm tired; I'll try to be concise, and accurate, but some of the things I want to say are going to be simplified and generalized to the point of being offensive.)

There’r things I'd spell out to anybody not into AGS, that I don't feel I have to tell you;  Stuff about computer games as art, about the commercial games industry being
Monolithic and trapped on a technological vector, leaving vast realms of creative inquiry, love and craftsmanship unexplored... all that stuff.

There’s other stuff that maybe you aren't so familiar with, which is relevant to ‘Banshee’.  Stuff about Ireland.

Ireland is a strange and special place.  I love Ireland, but She's a heartbreaker.  So much goodness and virtue, so much sadness and shame.

Here's something about Ireland.  This is delicate.  Wherever you're from, you probably know things about your country that outsiders will never really understand.  Well, I'm going to tell you a little about mine, but I'm going to say it in English.

That’s the point.  Ireland has her own language, and we can all speak it, but none of us do.  We are all taught Irish in school.  To get into college you need Honors marks.  To get a government job, you need to be fluent.  We have the language learned, but we never speak it.  It’s in stasis. 

It’s a kind of stigma that goes back hundreds of years.  See, for hundreds of years, Irish was a forbidden language, which (being Irish!) made our ancestors very determined to keep it.  Up until the middle of the 19th century, Irish was the first language of the Island, English spoken only by servants to English lords, in the cities.

So the Famine wiped out most of the Irish speakers (tenant farmers) and being able to speak English became a matter of life and death.
Irish became seen as a sign of ignorance and vulgarity, and was on the brink of extinction, but for a man called Douglas De Hide (first president of Ireland).  He realized what a colossal loss it would be, and began a movement to preserve and restore our native tongue.  The restoration of the language was a national ambition and an inspiration for the war o independence (if you think about what a language means, this is logical.) But with the civil war, and great disillusionment, the movement stalled. As they ran the schools, the language fell into the church’s care.  Whatever about God, the church in Ireland is an organization guilty of causing great pain and sadness to the people of Ireland. 


So.  Anyway.


The language, miraculously continues, but in a whisper.  It's a weird situation.  In Ireland, you must learn Irish, and though there are many wonderful speakers, the majority of the population a) have no confidence in their ability, and b) would rather not think about it.

Irish speakers speak with each other, but it’s kind of taboo to speak Irish among people who don’t.  (And Irish speakers are frequently guilty of the kind of defensive elitism which alienates non speakers still further.)

I love my language.  I love English too, but Irish is my true language.
I'd love to be able to inspire Irish people to spend time with Gaelic.  I want to make a game that blows their minds: actually connects all the disparate bits of Irish they have static in their brains, and gets them thinking in Irish.

  My audience will be shy and suspicious, their experience of the language having usually been a source of embarrassment and anxiety.  They haven’t experienced a need to think in Irish or use it for anything, other than school and state exams.  Even if they wanted to, they often simply dare not speak aloud. 

I believe that AGS software could spark an intellectual revolution.   
  Not one, many.

I know that ‘Banshee’ will have to be impeccably planned and executed; absolutely beautiful in every way a game can be, to do anything beyond what games normally do.  It'll also have to be smarter and deeper than any videogame has ever been.
Ok, ladies and gentlemen, thank you for reading this far.


Consider this:
The Irish words for ‘up’ ‘down’ ‘left’ and ‘right’ respectively are
Suas
Sios,
Cle
Deas.

Imagine this.
The opening scene:
A room with a character in it. 
An image of the 4 keyboard cursor keys appears.
The ‘up’ arrow flashes on and off.  Nothing happens until the player presses the corresponding up key on his keyboard.  Then 2 things happen.
1.  The character says ‘Suas’.
2. The character moves up.

The game has begun.  Little by little the player’s vocabulary is increased, by all the hotspots, characters and mouseovers in the game.  He can have a dictionary in his inventory getting updated with all the new words.

So.
  I want to make a very special game.

Anybody interested in helping out? It’ll take years. 
Titles released in Irish will be valuable to Irish Schools, the Irish Diaspora, and the millions of individuals who feel that their language is important, but have never had a game like this to develop their skills in the comfort of their own imaginations.

We do a good job, we’ll make history.
 



#15


Hello all:


I have a videoclip.avi that
plays music and flashes the text "Ready Player One".

Can anybody tell me how to make this avi file repeat if there is no player input for a period of 5 minutes? 

I'd like the avi containing the text and music to activate like a screen-saver, if the player is not interacting, because the game will be in a gallery space.

All and any help appreciated.

mdc
 
SMF spam blocked by CleanTalk