Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Chosim on Thu 02/06/2011 20:28:00

Title: Switch between two graphic-styles?
Post by: Chosim on Thu 02/06/2011 20:28:00
Hi, I want to ask how can I make a switch between two graphic Styles like in the Special Edition in Mokey Island.

And Sorry for my english ^^
Title: Re: Switch between two graphic-styles?
Post by: monkey0506 on Thu 02/06/2011 22:36:24
You won't be able to change resolutions mid-game, but you could perhaps simulate that by simply up-scaling the lower res graphics.

As for actually changing the style, there's Character.ChangeView, Character.SpeechView, Character.IdleView, Object.Graphic, Object.SetView, SetBackgroundFrame, Room.GetDrawingSurfaceForBackground, DrawingSurface.DrawImage, on_event, room_Load, maybe CallRoomScript..and perhaps a few other relevant script functions I've forgotten to mention.

You would probably want to make some utility functions to perform the switch. One for the global items like Characters, and then one for each room for the room background and Objects. From there another custom function to queue the relevant utility functions would seem like a good idea.

It's also important to note that walkable areas, regions, hotspots, and walk-behinds cannot be modified at all at run-time, so they would all have to be shared between every style, and also cannot overlap..though with some clever usage of RemoveWalkableArea, RestoreWalkableArea, Region.Enabled, and Hotspot.Enabled, you could potentially use something comparable to a Venn diagram for these areas..

Finally, if you also wanted to update the style of the user interface then you'd need to look up GUI.BackgroundGraphic, and probably all of the GUIControl functions..or just use separate GUIs. For the latter I'd also suggest utility functions for showing and hiding your GUIs. Extender methods would work nicely here. Oh, and mouse.ChangeModeGraphic too.

So, it's actually quite feasible, but you'd probably need to be quite familiar with AGS unless you're prepared to spend a good deal of time learning not only how to use it, but how to do pretty much everything in duplicate.
Title: Re: Switch between two graphic-styles?
Post by: subspark on Sat 04/06/2011 16:28:16
Err, I think Chosim is horribly lost in the wrong topic/website Monkey.
Just a gut feeling but my non-programmer mind managed to pick up some strange vibe here.

Chosim, if you are wanting to know how to switch between classic mode and special edition mode of The Secret of Monkey Island published by LucasArts, you're definitely on the wrong trail.
Aside from pointing you to the Adventure Related Chat (http://www.adventuregamestudio.co.uk/yabb/index.php?board=3.0) forum section, I would reccomend reading the game help files or contacting developer support over at LucasArts (http://www.lucasarts.com).

Hope this helps if you really are so lost.

Cheers,
Sparky.
Title: Re: Switch between two graphic-styles?
Post by: Khris on Sat 04/06/2011 18:49:55
No offense but I'm pretty sure YOU are the one who's horribly lost here.

Chosim has already posted two backgrounds in the Critics lounge depicting the same location using two very different styles. So clearly he's creating his own game.

But even if I hadn't seen that thread, he's asking "how [to] make a switch" [...] "like in" MI SE, in the correct forum.

Where on earth did you read him asking for the hotkey?

I realize that all you wanted to do is help but as it stands your post is incredibly condescending.
Title: Re: Switch between two graphic-styles?
Post by: Calin Leafshade on Sat 04/06/2011 18:57:49
Khris never disappoints me  ;D
Title: Re: Switch between two graphic-styles?
Post by: subspark on Wed 08/06/2011 15:52:48
QuoteNo offense but I'm pretty sure YOU are the one who's horribly lost here.
Chosim has already posted two backgrounds in the Critics lounge depicting the same location using two very different styles. So clearly he's creating his own game.
Oh, right. I didn't happen to fall upon Chosim's post over in the Critics lounge.
Given the number of posts our new friend has made it didn't seem out of the question, that perhaps one might have been considerably adrift. And wouldn't be the first.  :=


Quoteyour post is incredibly condescending.
I'm sure it sounds that way to sensitive ears, but it was not directed at you. ;)


QuoteKhris never disappoints me ;D
+1