Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: booknut on Tue 25/06/2019 00:26:11

Title: I want to make an achievement based game.
Post by: booknut on Tue 25/06/2019 00:26:11
I want to make an achievement based game. To win, my character has to unlock all the achievements. Is such a game possible with this Program?
Title: Re: I want to make an achievement based game.
Post by: Khris on Tue 25/06/2019 00:29:46
Yes, definitely. The scripting language can easily do that. Just create a bunch of bool variables and set them to  true  at the appropriate time.

function hKeyhole_Useinv() {
  if (player.ActiveInventory == iPencil) {
    if (oNewspaperFloorDoor.Visible) {
      Display("You push the pencil into the keyhole. You can hear something drop onto the newspaper behind the door.");
      achWorstPuzzle = true;
    }
  }
}


You can also add a custom function that'll display an animated achievement badge, with custom text and logo if you want. You can pretty much do anything you want. You just have to create all the graphics and write the appropriate code.
Title: Re: I want to make an achievement based game.
Post by: booknut on Tue 25/06/2019 00:36:41
Uh, Thanks, but I know Absolutely Nothing about coding or programming. (Also, are health bars possible?)
Title: Re: I want to make an achievement based game.
Post by: milkanannan on Tue 25/06/2019 02:46:19
Quote from: Khris on Tue 25/06/2019 00:29:46
Yes, definitely. The scripting language can easily do that. Just create a bunch of bool variables and set them to  true  at the appropriate time.

function hKeyhole_Useinv() {
  if (player.ActiveInventory == iPencil) {
    if (oNewspaperFloorDoor.Visible) {
      Display("You push the pencil into the keyhole. You can hear something drop onto the newspaper behind the door.");
      achWorstPuzzle = true;
    }
  }
}


You can also add a custom function that'll display an animated achievement badge, with custom text and logo if you want. You can pretty much do anything you want. You just have to create all the graphics and write the appropriate code.

Are you dissing the Hugo series?   (wrong)
Title: Re: I want to make an achievement based game.
Post by: Khris on Tue 25/06/2019 13:21:52
Quote from: booknut on Tue 25/06/2019 00:36:41
Uh, Thanks, but I know Absolutely Nothing about coding or programming. (Also, are health bars possible?)
That piece of code was meant to illustrate how game mechanics are created. The function I posted assumes a so called "Hotspot" drawn on the background called "hKeyhole" and handles the event of the player clicking it with the inventory item "iPencil".
Anyway, yes, health bars are possible. In theory AGS supports the creation of any arbitrary game; it's a full fledged game engine that is focussed on but in no way restricted to point and click adventure games. It also supports drawing geometric shapes or pixels directly on the screen, which means the only hard limit is speed. People have created 3D vector games, sidescrolling tile-based jump'n'runs with keyboard controls, 2.5D racing games, a darts simulator and all kinds of other "off-topic" games.


man n fist: and every other one of at least a few dozen adventure games implementing this puzzle
Title: Re: I want to make an achievement based game.
Post by: milkanannan on Tue 25/06/2019 13:56:14
Quote from: Khris on Tue 25/06/2019 13:21:52

man n fist: and every other one of at least a few dozen adventure games implementing this puzzle

Haha touche  (laugh)
Title: Re: I want to make an achievement based game.
Post by: booknut on Tue 25/06/2019 22:30:26
Sorry about the tantrum. I was exceedingly frustrated. I've been watching tutorials, and I understand the program a bit better now.
Title: Re: I want to make an achievement based game.
Post by: Khris on Wed 26/06/2019 00:38:51
No need to apologize.
Creating a game with AGS requires programming; becoming frustrated is natural as a beginner. AGS used to be a "click shit together" type of program, but it has grown into an actual engine and as such requires skills that can't be acquired in a single afternoon.