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

#61
I am trying to get the SpinLock module working in my game, and so far I have gotten the left and right buttons working correctly where they spin the dial, but i am not sure how to test if the correct combination has been tested.  i used the code included in the readme file which is:


if (SpinLock.SpinRight()){
  Display("You figured it out!");
}

and i put that code in the interaction for the right arrow button.  after i did that when i used the button it would turn the dial by two numbers instead of one.  can someone help me with this?

i haven't tried making a reset button, i am hoping to figure that out by looking through the code, but if someone can help with that too that would be great.  i think this is an awesome module, but i did not find many posts on it, and there was not much documentation.
#62
Worked perfect.  Thank you so much.  Hopefully this weekend i can start working on the last two scripts i have to do, and hopefully my questions won't make anyone grumpy!!!
#63
yeah, you be nice too!  but i have to say, ashen, your scripting is exceptionally nice!  It worked perfect!  I am busy right now finishing all the coding for the 10 different animations for this.  there are only two more scripting sections to go in my game, so hopefully i won't have too many more questions before i am finished, and hopefully you will have a great new game to play!

Actually, one last question on this, how do i check to make sure that a number is entered and not text?  i know you mentioned, and you are right: as of now, if letters are typed in, it is treated as a zero.
#64

be nice

i am not at my computer at home with AGS, but i was asking if i am putting things in the right spot by placing the code in the script for the ok button.  when the user clicks ok, i have the gui disappear, and then I tried putting something like:

if (biketext.Text == 1) {
Display ("something")
}

which i realize i need to use AsInt somehow, but i don't know if i am doing in the right place to be able to play an animation depending on the input.
#65
Your responses have been helpful, but I cannot get this to work.  I have created a GUI that asks the user if he wants to use the motorcycle.  If the user clicks yes, another GUI pops up asking how fast. I have created the text box and an ok button.  Clicking OK makes the GUI disappear.  I have no idea how to manipulate the input though.  i have been trying to type different scripts into the function for the ok button, but i cannot get anything to compile when i do that.  Can someone please help me to just get started so that i can play an animation, any animation, when the user clicks the ok button.  Thank you in advance.
#66
I am trying to change my inventory spacing, and IÃ,  put

SetInvDimensions (40, 40);

in the function game_start() section, and when i try to save my game this is what i get:

---------------------------
Compile Error
---------------------------
There was an error compiling your script. The problem was:

In: 'Global script'



Error (line 6): Undefined token 'SetInvDimensions'



Do you want to fix the script now? (Your game has not been saved).
---------------------------
YesÃ,  Ã, NoÃ,  Ã, 
---------------------------


Can someone please help me with this? Thank you.


----


Thanks for the quick response!
#67
I have a GUI that opens and asks the used how fast they would like to drive a motorcycle up a ramp.  i have a text box that fits in two digits, and then an OK button that closes the gui.  i would like it so that when the number that has been input is between 0-9 that it will play an animation, and then 10-19 will play a different one, and so on.  i have played around with the script but cannot figure out how to get it so that when they hit ok it will play an animation.

right now i have the animation set up so that the motorcycle is a character, and i have a background that i have made a separate room with the ramp.

can someone please help me with this?  thank you. 

This is for my game Banana Man.  I have the backgrounds completed, as well all the animations.  The game is scripted about 3/4 of the way through, and beyond that i just have a few fun little things like the ramp script to throw in. 
#68
Thanks again for all the responses.  These definitely are helping me progress on the game much faster than i thought i would.
#69
THANK YOU GUYS SO MUCH!

I cannot believe how fast all of questions were answered!  I am sure I will have more soon! 

Here is the most complicated thing I am going to have in the game:  There is going to be a motorcycle in the parking lot.  When you click on it, you will be asked if you want to use it to jump 3 buses.  If you click yes it will ask how fast you want to go.  The choices should be between 00-99.  I have made 10 different animations, 1 for 0-9, 1 for 10-19 and so on, and then it will play the animation for their choice, usually ending in death.  How complicated is this going to be, and should I be posting this in the other technical forum?
#70
Thank you so much for the quick response.  Every little bit helps.
#71
I think the save/restore/quit guis are all built in, but is there a way where i can just the colors used as opposed to building all new guis?

Answered myself - I used the simple save/load module.

-----

Thank you everyone for the quick responses.  This game is going much faster than I thought it could have.  Here are my current questions:

1. (Answered - Thanks KhrisMUC) My character Andre turns into Banana Man when he puts on the costume.  I have animated him as Andre and Banana Man.  How do i make it so this works in the game.  Right now I have them as separate characters.

2. (Answered - Thanks KhrisMUC) How do you make a dialogue box pop up for the user to type into?

I am currently digging through the manual to teach myself everything, but any help would be appreciated.  Thanks!

-----------------

Original Post:

I just started making a game, so I am new to everything.  i have the game planned out, and i am done with almost all of the backgrounds, and the animations for the main character are done.  So now I have to learn how to script.  I had C++ in college about 8 years ago so I don't remember much of that.  But right now I am working on the title screen and the GUIs.  I am able to figure out most of putting the rooms together so far with walkable areas, regions and walkbehinds. 

Here are my questions, I hoe someone can help me.  I think once I get started i will be able to figure out most things. 

1. (Answered - thanks Creator)  On the title screen, can I hide the main GUI title bar that is across the top?

2. (Answered - thanks Creator)  Can I make it so the mouse is just a pointer for that screen? 

3. (Answered - thanks KhrisMUC) On the GUI with all the large icons, I can see a blue line across the top for all of my own icons that i have made.  i think this is because it is making the top left pixel transparant.  But i cannot figure out how to fix it.

4. (Answered - thanks Creator) Here is my scripting question.  on the title screen i have 'start game' and 'load game' as two options to click.  i figured out the start game, but i am not sure how to make it so when you click load game to get the restore game menu to pop up. 

4. (Answered - thanks KhrisMUC)also, when i am traveling between rooms, the player character is not in the right spot.  is there a way to control where he is in the new room so it doesn't look like he teleported across the screen? 

thanks

here is the link to my post in the beginner's section with a couple screen shots:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29479.0
#72
Here is the update on Banana Man:

Story: 100%
Scripting: 85%
Graphics: 99%
Sound/Music: 70%

I put up a newer demo on my site.Ã,  I am hoping to have the game ready to be tested by March sometime with a goal of the game being completed by May.Ã,  These forums have been great for me learning to script.Ã,  Hopefully people will be willing to help test the game.Ã, 

Right now, the game is about 47 meg.Ã,  is that too big?Ã, 

All that is left is scripting the fight scene at the end.Ã,  And I would like to make my own Save/Load GUIs, but those still scare me.

---------

After a week of learning AGS I have come a long way.Ã,  You can download a demo at my website at:

http://www.deercrack.com/banana/games/

You can explore the whole school, and go through the game up until the fight scene at the end at which point nothing happens.Ã,  but there is lots of fnu stuff to do, like shoot a basketball, kick a field goal, and do a huge jump over three buses with a motorcycle.



I have Banana Man in a classroom with a fish tank in the background.Ã,  I made the fish animated,

----

Original Post:

I have just started a game based on my independent comic Banana Man.Ã,  I have done a few issues, and i have made a few banana web games, but I became inspired to make an old style game since my favorite game is Quest for Glory.Ã,  This game will probably take me a very long time since I do not have much free time, but if people here are willing to help with my newbie questions I would appreciate it.Ã,  Otherwise i will eventually figure these things out.Ã, 

The basic premise is about Banana Man, who is a high school nutrition teacher, who preaches the importance of potassium to his students while dressed accordingly.Ã,  He has a nemesis in the school named Gorilla Guy.Ã,  In the game you are trying to find out who Gorilla Guy is, and eventually have a big fight with him.

Here are my first screen shots:







Anyone willing to help, I will gladly give credit in the game, and if i have asked some too simple questions I apologize.

Thanks a lot,
Vince

You can read the banana man comics to get an idea of the plot and my humor at my website atÃ,  http://www.deercrack.com/banana/
SMF spam blocked by CleanTalk