Menu

Show posts

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 Menu

Topics - cHugoDance

#1
Hi guys and gals,

I'm having a relatively simple problem. What I want is, when the cursor passes over the main character, he becomes partially transparent and it's possible to click objects and hotspots behind him.

I'm using the Tween module.

Code: AGS

bool hugoFaded = false;

function repeatedly_execute()
{
  if (IsGamePaused() == 1) return;  //anything above is always done, below is what doesnt get done when paused
  
  
  if (Character.GetAtScreenXY(mouse.x, mouse.y) == null && cHugo.ActiveInventory == null && hugoFaded){ //if mouse is not over hugo and hugo is faded out
  
    fadeHugoIn(); //run fade hugo in
    hugoFaded = false;
    }

    if(Character.GetAtScreenXY(mouse.x, mouse.y) == cHugo && cHugo.ActiveInventory == null&& !hugoFaded) {  //if mouse is over hugo and hugo isnt faded
      
    fadeHugoOut();
    hugoFaded = true;
    }


The functions mentioned just simply tween the main character (hugo)'s transparency.
Code: AGS

function fadeHugoIn (){
    cHugo.StopAllTweens();
    cHugo.TweenTransparency(0.3, 0, eEaseOutTween, eNoBlockTween);
}

function fadeHugoOut(){
    cHugo.StopAllTweens();
    cHugo.TweenTransparency(0.3, 50, eEaseInTween, eNoBlockTween);
  }


The issue I'm having is that Character.GetAtScreenXY relies on the character having the clickable property enabled, which needs to be disabled when the mouse is hovering over him so that the player can click behind him.
If anybody has a solution or any ideas as to how I can achieve this, your help would me most appreciated.
#2
Hi guys and gals.

The issue I'm having is that essentially, the characters speech and thoughts are half the length they should be across.
"Hi my name is John Smith and I like kittens."
is getting displayed as
"Hi my name is
John Smith and I
like kittens."
Meaning I need to have 'Use low-resolution co-ordinates in script' set to True for speech, thoughts and my custom dialog to display properly. This doesn't make any sense to me as the project was started in 3.2.1 and I thought this was a backwards compatible thing.

I even attempted to start the entire project again from scratch making sure never to touch the setting, and the problem reproduced itself. Even stranger, is it's not consistent. Some strings are being squashed and some aren't (though it's always the same ones). Speech associated with hotspots and objects are always shortened in one room, but not in another. So I thought it was just the room script, but speech in Room_firstLoad isn't being squashed, and a custom dialog gui is being squashed in a different room. Any help on this would be much appreciated. If it's useful, the resolution is 640x400.

Thanks
#3
AGS Games in Production / Unlimited Continues
Fri 15/03/2013 23:33:15
Unlimited Continues is a game that I am working on to hopefully be a springboard for my Indie company, as well as being a submission for the final year of my Games Design University course.

A wee synopsis of the story:

Unlimited Continues follows a man named Hugo Evans.

[embed=425,349][/embed]

He lives in London and the year is 2040. Hugo is a product tester for the MyLife Corporation, his latest task is testing out the latest model of the MyThumb, a small device that's mounted on the thumb, synced to the DNA of the user (it handles monetary transactions, acts as a phone etc). He wakes up one morning in his dull apartment and begins to go about his dull daily routine.


On his way to catch the London TravelCube service, he foolishly steps into the road, and is killed.
[imgzoom]http://img62.imageshack.us/img62/9095/cubariffic4copy.png[/imgzoom]
He wakes up back in his bed, and proceeds to have the same conversation with his neighbour. It quickly becomes apparent through iterative days, that Hugo is reliving the same day, over and over again, and even death cannot release him. (Think Groundhog Day or that one episode of the X-files/Buffy/Stargate etc).
He goes about uncovering the mystery of the seemingly divine intervention that has befallen his life and tries to have the 'perfect day' to break the cycle. In which, he must; not get fired from the job he hates, foil a bank robbery and 'get the girl', amongst other things.

Hugo feels out of touch with the world, and has now become a man, literally, out of time. He's always been in love with retro technology, like Blu-ray discs and 2D televisions. As an aside, each night when he goes to sleep, he dreams about about his role aboard the S.S. Explorer, a fictional starship straight from his favourite classic TV show, Solar Quest, complete with Captain Pilchard, and the ships android, INFO. This serves as his guide in unravelling the inner mysteries.
[imgzoom]http://img138.imageshack.us/img138/457/spaceorama3.png[/imgzoom]


The game takes a strong focus on humour, and I am confident in my writing skills to that effect and will release regular updates for your tasting pleasure. My drawing skills are improving as the project progresses, but I'm sure I will need a lot of guidance and gentle nudging throughout this project as far as scripting goes, but I will leave those questions for another time. Thanks for your interest!

Current (realistic) progress towards the final, commerciable product:
Graphics: 10%
Writing: 40%
Scripting: 5%
Sound: 0%

A thirty minute playable demo will be available in June.

So far I've found the forums invaluable as an observer, though I've a few hurdles to jump yet.
This is a big project, especially for one man. If anyone is interested in helping (I'll need voice-actors for sure) in any way possible, please don't hesitate to message me.

Edit: Sorry for the confusion, I've added the apartment location with the gui up for clarity. The other screenshots are gameplay but cherry picked not to contain text. (Was feeling a little embarrased that I've not graduated from the default fonts and inventory UI)  :-[.

- Live for awhile and be moderately wealthy -
SMF spam blocked by CleanTalk