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

Messages - Ekeko

#41
Before the boat I was about to make a seat... So I guess my vote goes for Tabata!
#42
Quote from: LeKhris on Tue 11/10/2011 00:02:29
In case you want to switch, here'd be code:

Code: ags
// in on_key_press

  if (keycode == eKeyUpArrow) {
    int x = player.x - GetViewportX(), y = player.y - GetViewportY();
    Hotspot*h = Hotspot.GetAtScreenXY(x, y);
    if (h.ID > 0) h.RunInteraction(eModeInteract);
    else {
      Region rr = Region.GetAtRoomXY(player.x, player.y);
      if (rr.ID > 0) object[rr.ID].RunInteraction(eModeInteract);
    }
  }


So no extra function and no properties necessary.

Thanks! :D You are AWESOME!!  :D
#43
Quote from: LeKhris on Mon 10/10/2011 22:03:57
It didn't occur to me until now but you don't really need to draw hotspots. It's enough to name them and set up the interaction(s) and region number.

Thinking about this further, that means it makes more sense to use regions only for objects and draw the hotspots not over the background object but the floor area.

That way one can use region 1 for object 1, region 2 for object 2, etc. while the game also checks for hotspots at the player's feet.
So no need for all the custom property business.

On the other hand, seeing all areas where pressing UP triggers something at once isn't such a bad thing either.


Wow... You... Simply... ROCK, MAN!
#44
Hey guys! I'm here with my entry:

It...Is...A...Toy...BOAT! ;D
I don't know if it's against the rules, (If it is, please tell me) but I took the colors the Pokemon Voltorb and Regice.
Bye guys!
#45
I suppose I can mark the thread as SOLVED since we're all happy now! ;)
#46
Quote from: KodiakBehr on Mon 10/10/2011 20:41:06
I put it in the same place.  The hotspot has a property known as "region" that is set to 2, as per the instructions.

The only difference was that the variables "i" and "p" were already in use and were substituted for unused two-character variables.  I did this twice just to make sure there wasn't an "i" or a "p" missed.  It's very frustrating when somebody holds your hand through the code like this and you still can't pull it together.

Maybe I'm about to say something that might be wrong...  But I think that two-character variables can't be used... Why don't you try numbers, for example? And have you already used ALL letters? (I don't really know if numbers can be used, because I have never made great use of variables, actually)

EDIT: So yeah, I was wrong.
#47
Quote from: KodiakBehr on Mon 10/10/2011 20:21:47
rr.ID never goes above zero.

Does the second bit of code that's intended to be above on_key_press need to be within a specific function?

Hmmm... I didn't got that error... :-\ I pasted that code below the closing brace of the function
repeatedly_execute_always. Where did you paste it? Maybe there's the prob...

EDIT: Wait, have you modified the property of the hotspot?
#48
Quote from: KodiakBehr on Mon 10/10/2011 19:59:55
Did this code work for you without modification, Ekeko?
I'm doing something similar and not having any luck.

Yes it worked although I had a hard time making it work, I didn't had to change anything...  :-\ What problem are you getting?
#49
Edit: Forget it, I corrected it!
Thanks guys for the help!
#50
Hey guys! I would like to know how to do something like in Art of Theft or 1213 where you interact with something pressing the UP key.  This is what i tried:

Code: ags
 
function region2_Standing()
{
 if (keycode == eKeyUpArrow) player.Say ("Something");
}


In that part there is a PC and you step on in front of it (Region 2) and i want the character to make a comment about the PC when UP is pressed (When I say UP, I mean the up arrow), but when i try to run it, it says:

Failed to save room room4.crm; details below
room4.asc(17): Error (line 17): undefined symbol 'keycode'

Could anyone out there help me?  ???
#51
AGS Games in Production / Re: Armageddon
Mon 10/10/2011 13:35:59
Quote from: Kastchey on Mon 10/10/2011 11:12:02
I see no reason to bash your graphics, the screenshots look clean and kind of charming in their simplicity.
Thanks, guys!
Quote from: Kastchey on Mon 10/10/2011 11:12:02
Will there be an English version?
Yeah, after finishing the game I'll translate it. Not only for the AGS Community, but also because I know some people that would kill me just to get translated versions of my game!
I suppose you're right 'bout the graphics... After looking at them some time, I'm starting to feel they are OK. Soon I'll be uploading a demo and more screenshots! Until then, goodbye!
Bye, guys!
#52
AGS Games in Production / Armageddon
Sat 08/10/2011 19:47:56
Hello everybody! Before showing my game, I would like to introduce myself.
I'm Ekeko, and this year I discovered AGS and decided to try it. I've already made 2 games but they are not very good so i decided no to post or upload them. This is my project... like... N°7 after my second game. Most of them are already started but while programming a HUGE new idea comes to my mind and decide to leave it for later (I'll try that the games that I write about here would AT LEAST get a beta version). After this project I'll go back to them. Well... Now to show my game!:



ARMAGEDDON

Story:
One day... The news report says that strange toxins and gases had been accidentaly thrown into the atmosphere... Apparently they only affect the zone of your city. Lucky you. The report says that it's recommended to shut the windows (You knew that a window-less house was going to be useful for something!) and close the door...
3 days pass...
You nearly forgot how the sun looked like... But today you get tired and decide to see if everything has already finished


Screenshots:




Progress:
Graphics: 30%
Story: 70%
Scripting: 8%
Music/Sound: 10%  
Aproximate Release: Kinda Cancelled...

Well... That's my game! ;D I know that the graphics may seem weak so please save the ironic comments!
I'm still learning about programming and all that but i'll try to make my games enjoyable so try to look beyond those graphics... And please be nice with me... It's my 3rd game so it's not really going to rock or anything. ;)
I'll update soon,

Goodbye!
SMF spam blocked by CleanTalk