How to mix two templetes in an alone game?

Started by Mariano Cirigliano, Wed 22/07/2009 03:49:30

Previous topic - Next topic

Mariano Cirigliano

Hello, I comment to them which is the problem that I have this time.
I have two templetes that I want to mix to be able to produce a game. But when I them mix the game it does not work due to a mistake of programming.
I would like to know which is the surest way of mixing two templetes?.
Thank you very much.

Gilbert

There is no sure way of mixing templates. In fact this is not supported. You need to look into the codes and stuff in each template yourself and do some copy-pasting and fixing for this to work.

Mariano Cirigliano

Hello, I leave the two them template to see if they can help me. What I want to do is that on having pressed the key F5 it he appears the way screen records and to shit (template 2) and that the rest of the game works with template 1 that would be to the style THE DIG. It is quite here I leave both files them.

http://www.megaupload.com/?d=KLP108A1 (TEMPLATE 1)
http://www.megaupload.com/?d=IAK6U92M (TEMPLATE 2)

Thank you very much!.

Mr Flibble

Open one template, look at the code which runs the F5 menu, and then copy that code and the relevant GUIs to a different game which is using the Dig template. Like Gilbet said. If you get error messages, try to track down why it isn't working (because obviously the code all worked in the template before you moved it).

Try doing it yourself first and then you'll get help in getting it to work, rather than giving us the templates and asking us to do it for you... Anyway, if you want to make a game, you'll have to understand the scripting at some point anyway.
Ah! There is no emoticon for what I'm feeling!

Mariano Cirigliano

I continue without making it work. "Ghost" or sure "Creazy" that they can help me.

;)

Vince Twelve

What errors are you getting?  What have you tried to do so far?  Give us some information so that we can help you.

Someone could take the time to make you a template, but next time you want something changed, are you just going to come here and ask someone to do it for you again?

If you're really planning on making a commercial game, you'd better figure out how to code these things yourself, or hire someone who can.

Again, post what you've done so far, maybe copy/paste some code into [code ][/ code] tags and we'll tell you what you're doing wrong.

Ghost

You will need to create all the things that are part of the templates in one game. If one template has a GUI you want to use, you need to create that GUI, set up all buttons/labels etc, and create event handlers for them. Copying code that doesn't rely on other elements is quicker, but to be honest, your best bet would be to start from scratch and not bother to mix-and-match.
If you have a clear idea about what your game needs, post them as a short list and ask how to get that going (or, even better, have a look at the help file and try to figure it out yourself- Vince is totally right there!)

That sounds harsh, but coding an interface or any sort of functionality is a good way to get used to AGS, and you will always need what you learned.

Mariano Cirigliano

#7
I comment to them that mistake me appears. I managed to mix two templetes but one of my aims is that on having done click with the right button of the mouse the inventory is opened but it he is not opened always and this alone mistake is given when I change the resolution to the game. templetes that sent Her "Creazy" is in 320 x 240 and I want to do my game in 1024 x 768 This is everything what it fails me to arrange, thank you.

I am going to try to explain with more detail the problem that I have and which is my aim:

This way it he is since as the version sent by "Creazy" is seen correctly.


But depending wherefrom he become the click the inventory is not opened, which happens is that there is lightning the screen.

When I change the resolution of 320 x 240 1024 x 768 sometimes one sees correctly the inventory.


But depending on the part of the screen where the screen is done click also relampague.
How can I solve this?. Since not that departs from the "Script" to change.

Something that I have just discovered is that the lightning more than anything me does when I do the click in the edges of the screen, me what I need that on having done click with the right  button of the mouse the inventory is opened without mattering in that sector of the screen realize the click.

Thank you friends.

Galen

I'm really not sure what your problem with the display is, I upped the resolution and replaced the background and it ran just fine for me... :/

As for being able to right click on the inventory window, it simply isn't possible without checking for mouse clicks every frame (which in my eyes is just too complicated to warrant bothering).

SMF spam blocked by CleanTalk