[TEMPLATE] Reality-on-the-Norm (RON) Template for AGS 3.2

Started by helios123, Sat 27/11/2010 19:04:23

Previous topic - Next topic

helios123

Description:
 This is a template for making Reality-on-the-Norm (RON) games using AGS. It has been created using AGS 3.2.  This is a modification of the RON 3.1 template which is available on the RON website (see below).


AGS Version: Tested using AGS version 3.2. Not tested for older versions of AGS.


Differences with respect to RON 3.1 template:
 The following are some of the changes done in this template:

  • Updated Script files and GUI's to use AGS's new object based scripting commands, introduced in version 3.x.
  • Updated formatting in GlobalScript.asc.
  • Added a new shortcut key (F1) to display mouse/keyboard shortcuts.
  • Screenshot is now named after current timestamp (hhmmss-ddmmyyyy) instead of "scrnshot.bmp".


Important Notes:

  • AGS 3.2 introduced a new Audio file management system. Hence, it is possible that this template may not work at all in versions below 3.2. AGS 3.2 can be downloaded here.
  • Templates for 3.1 and older versions of AGS can be found on the RON Website.

Update: April 01, 2011: New version released. This has the following changes:

  • A new macro GAME_AUTHOR is defined in GlobalScript.ash. Update as required. This is used by the about dialog to display the game's author(s).
  • A new macro GAME_VERSION_NO is defined in GlobalScript.ash. Update as required. This is used by the about dialog to display the game's version number.
  • Added an HTML Template (Readme.html) for creating HTML Readme for the game.

Update: July 22, 2011: New version released. This has the following changes:

  • Code in unhandled_event now updated to work correctly for scrolling rooms.

Comments, suggestions and criticisms are welcome.

Download here
That's all for now,
helios123

lan

RON is cool...and the template looks great.

But there seems to be a problem with a 640x480-resolution: when the player's character is moved via script (e.g. after stepping ont a hotspot) with following script-code
Code: ags
player.Move(20, 240, eBlock, eAnywhere);
the character finally stops near the upper left corner of the room (i.e. at position (10,480)).

or is the RON-template intended only to work in 320x200 resolution?


helios123

Quote from: lan on Tue 05/04/2011 14:58:04
RON is cool...and the template looks great.

But there seems to be a problem with a 640x480-resolution: when the player's character is moved via script (e.g. after stepping ont a hotspot) with following script-code
Code: ags
player.Move(20, 240, eBlock, eAnywhere);
the character finally stops near the upper left corner of the room (i.e. at position (10,480)).

or is the RON-template intended only to work in 320x200 resolution?



I'll look into that and let you know.

Ok. I've found out the problem. The solution is as below:

Open the General Settings tab (where the Game name, resolution, etc. are displayed), and set Use low-resolution co-ordinates in script to False. Since, most RoN games are made with the default 320 x 240 resolution, this setting does not create any problems. It is only for higher resolutions that we have to set this to False. Also see Upgrading to AGS 3.1 in the AGS manual.
That's all for now,
helios123

lan


SMF spam blocked by CleanTalk