For the sake of an argument, is it possible to make a game run in, lets say, 400 x 300 pixels?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Mandle on Sun 25/10/2015 12:41:32
Yes, it's possible: Almost anything is in AGS...
What you need to do is have a Repeatedly Execute bit in your code that asks AGS to check on where the x and y locations of your character are:
Then: If either location goes "out of bounds" (like strays within the 10% boundary of the top, bottom, left, right edges of the playfield) then the camera recenters on the main chacters...(The exact command is something like: CameraViewpoint or something but yeah, not exactly that...it's in the manual)
Best of luck with your project!
if (IsInteractionAvailable(mouse.x,mouse.y, eModeLookat) == 1)
{
if (mouse.Mode != eModeLookat)
{
mouse.Mode = eModeLookat;
}
}
else if (mouse.Mode != eModeWalkto)
{
mouse.Mode = eModeWalkto;
}
if (Hotspot.GetAtScreenXY(mouse.x, mouse.y) == "HotspotHasProperty1")
{
mouse.Mode = eModeLookat;
}
else if (Hotspot.GetAtScreenXY(mouse.x, mouse.y) == "HotspotHasProperty2")
{
mouse.Mode = eModeInteract;
}
function room_RepExec()
{
if (Hotspot.GetAtScreenXY(mouse.x, mouse.y) == hotspot[1])
{
if (mouse.Mode != eModeLookat)
{
mouse.Mode = eModeLookat;
}
}
else if (mouse.Mode != eModeWalkto)
{
mouse.Mode = eModeWalkto;
}
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.089 seconds with 14 queries.