Author Topic: Changing Template  (Read 330 times)

Changing Template
« on: 02 Jan 2018, 20:55 »
Hi everyone

Just signed up and have recently started using AGS in order to make my very first video game/adventure game. This is for a college project I'm doing in game development. I'm currently working through the tutorial, but I would like to change my BASS template to something else, but I'm not sure how or if you can. Is this possible at all?

Thanks

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
Re: Changing Template
« Reply #1 on: 02 Jan 2018, 21:03 »
Not sure what you want to do exactly, but template is just a collection of starting assets, like scripts and dummy graphics. It's not something that is "locked" in your game.
Normally you would just start with something and then modify it to your needs.

If you want to use starting scripts from another template, you may:
1) create a new game using template you like more, and then copy only things you want from your old game.
2) Or other way around - create a temporary game from wanted template, and copy scripts from there to your current game.
« Last Edit: 02 Jan 2018, 21:06 by Crimson Wizard »

Re: Changing Template
« Reply #2 on: 02 Jan 2018, 21:14 »
I guess I just want to experiment with the Monkey Island verbs, but without starting over whilst following the tutorial.

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
Re: Changing Template
« Reply #3 on: 02 Jan 2018, 21:23 »
I guess I just want to experiment with the Monkey Island verbs, but without starting over whilst following the tutorial.

Hmm, no, there is no way to automatically switch the contents of one template with another. The only way is to create a new game with new template and then copy necessary things over.

For example, rooms are separate files with *.CRM extension, you may just copy them to new game folder and then include into game with "Import existing room" command from context menu. Then copy & paste their scripts (they are just texts).
If you have created any global script modules yourself, they are also just texts that may be copied over with copy&paste commands. Same for Dialogs.
GUI may be exported with context menu command and then imported to new game.
Sprites have to be reimported anew, I think.

« Last Edit: 02 Jan 2018, 21:26 by Crimson Wizard »

Re: Changing Template
« Reply #4 on: 03 Jan 2018, 00:04 »
Okay, thanks for the help. :)

I have a problem now. I've done a search in the forums, but I'm still clueless. Plus, I'm still very new to coding/scripting, but I can't work out how to get my placeholder character to walk to the key first before picking it up.

Khris

    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
  • Khris worked on a game that was nominated for an AGS Award!
Re: Changing Template
« Reply #5 on: 03 Jan 2018, 01:52 »
Sounds like you're looking for a blocking walk:
Code: Adventure Game Studio
  1. function oKey_Interact() {
  2.   player.Walk(213, 123, eBlock);
  3.   // pick up happens here
  4. }

Always state what you've tried, so we don't have to guess. Asking for help is fine, but try to minimize the work we have to do as much as possible, is a good rule of thumb.

Re: Changing Template
« Reply #6 on: 03 Jan 2018, 09:54 »
Okay, I’ll try to remember that in future. :) I take it those axis values will need changing to where my key is?

One other thing: I found out to my disappoint that AGS doesn’t support vector graphics for characters/sprites, so I’ll have to change my assets to be more retro/pixelated. I’ll be doing this in Photoshop. How do I import them over? The import option asks for the files to be in .CHA, I think it was...?

Khris

    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
  • Khris worked on a game that was nominated for an AGS Award!
Re: Changing Template
« Reply #7 on: 03 Jan 2018, 11:38 »
You need to
  • import individual standing / walkcycle sprites in the sprite manager (PNGs or GIFs)
  • compose a VIEW from them
  • set the view as NormalView for your character
The import function you found is for importing characters that were previously exported from another AGS game.

Re: Changing Template
« Reply #8 on: 03 Jan 2018, 12:22 »
I managed to import a pixel image I made in Photoshop no problem. :) Animations I haven't looked into yet. That will be a whole new learning challenge.

I'm thinking of having my pixel art 1920x1080. What would be a good resolution for my characters/sprites?

Khris

    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
  • Khris worked on a game that was nominated for an AGS Award!
Re: Changing Template
« Reply #9 on: 03 Jan 2018, 12:55 »
I don't know. Why don't you create a test room using that size, then draw a door and go from there?
The only thing you need to keep in mind is that scaling down a sprite always looks better than scaling it up. If the characters are going to get close to the "camera", draw them rather big.
« Last Edit: 03 Jan 2018, 12:59 by Khris »

Snarky

  • Global Moderator
  • Mittens Earl
  • Private Insultant
    • I can help with proof reading
    •  
    • I can help with translating
    •  
Re: Changing Template
« Reply #10 on: 03 Jan 2018, 13:07 »
There's no set answer for that. In classic 3rd-person adventure games, characters at full size are typically somewhere between 1/4 to 1/2 as tall as the background portion of the screen (i.e. not counting the bits covered up by a UI), varying a little depending on the aspect ratio, but it really just depends on how large you want them to be on-screen.

As Khris says, the best way to figure it out is to create a mockup with a background or background sketch, sketching in a character at full size and seeing how big that ends up being.

Re: Changing Template
« Reply #11 on: 03 Jan 2018, 19:52 »
Fair enough. I'll just have to experiment and see what works best.

Currently having problems applying my dummy sprite. I've got it uploaded as a PNG, but I'm not sure how to use it so it appears in my scene. I feel as though the tutorial doesn't explain or explain it clearly. :-/

Also, for some reason now, whenever I try and run the game, I get a compiler error saying: 'The game is set to start in room -1 which does not exist', but in the properties panel it says it's 1.

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
Re: Changing Template
« Reply #12 on: 03 Jan 2018, 20:06 »
Currently having problems applying my dummy sprite. I've got it uploaded as a PNG, but I'm not sure how to use it so it appears in my scene. I feel as though the tutorial doesn't explain or explain it clearly. :-/

AGS does not have a concept of sprite shown in the game as-is, it has characters, room objects, overlays and GUI. Depending on what your sprite represents, create either of these and assign sprite to it.
Characters are best for characters (obviously), or anything that walks, talks, and moves from room to room. Room objects are simplier thing that always reside in the same room.


Also, for some reason now, whenever I try and run the game, I get a compiler error saying: 'The game is set to start in room -1 which does not exist', but in the properties panel it says it's 1.
The error means that your playable character's has "Starting room" set to -1. Are you sure you are looking at the correct property?
« Last Edit: 03 Jan 2018, 20:07 by Crimson Wizard »

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
Re: Changing Template
« Reply #13 on: 03 Jan 2018, 21:20 »
I'm not sure which tutorial you're following, but I suggest you try this one: https://www.youtube.com/view_play_list?p=21DB402CB4DAEAEF

It's a bit outdated, but most of the stuff hasn't changed, so you at least can get the basis out of the way. ;)
There are those who believe that life here began out there...

Re: Changing Template
« Reply #14 on: 03 Jan 2018, 21:46 »
I'm not sure which tutorial you're following, but I suggest you try this one: https://www.youtube.com/view_play_list?p=21DB402CB4DAEAEF

It's a bit outdated, but most of the stuff hasn't changed, so you at least can get the basis out of the way. ;)

Thanks for this. This has cleared up the confusion. :D

Re: Changing Template
« Reply #15 on: 03 Jan 2018, 21:47 »
The error means that your playable character's has "Starting room" set to -1. Are you sure you are looking at the correct property?

I have no idea. I can't see a -1 anywhere in any of the properties. :confused:

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
Re: Changing Template
« Reply #16 on: 03 Jan 2018, 23:13 »
No, but you can set (or not ) the Player's starting room to (None) which translates to -1 in script code... ;)
There are those who believe that life here began out there...

selmiak

  • ǝsıɔɹǝxǝ ʞɔǝu puɐ uıɐɹq
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with translating
    •  
    • I can help with web design
    •  
  • selmiak worked on a game that was nominated for an AGS Award!
Re: Changing Template
« Reply #17 on: 07 Jan 2018, 09:59 »
but -1 is even less than none! 8-0