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 - Matti

#841
Sorry, you don't need extra brackets, that was a mistake.
#842
What he meant is that you have to write

Code: ags

if (GetLocationType(mouse.x,mouse.y) == eLocationCharacter || GetLocationType(mouse.x,mouse.y) == eLocationObject)


instead of

Code: ags

if (GetLocationType(mouse.x,mouse.y) == eLocationCharacter || eLocationObject)
#843
Yeah, but isn't it a bit strange that

Code: ags

if (player.Baseline != x) ...


works, while

Code: ags

player.Baseline = character[baseChar].Baseline + x


doesn't work? I mean, both character's baselines are set to 0 (or Character.y), so where's the difference? It seems like I can get the player's baseline, but not the other character's baseline - or I can get both baselines, but not set one baseline depending on another baseline (if both are set to 0)..
#844
I'm working on a swordfight with several enemy characters and I want the player (well, the sword) to be drawn in front or behind the enemy, depending on the kind of attack.

I have this line to change the baseline accordingly. It's supposed to be the enemy's baseline + 1 or - 1 (basel).

Code: ags

  if (player.Baseline != character[baseChar].Baseline + basel) player.Baseline = character[baseChar].Baseline + basel;


It didn't work at all and I was going to post this here. Then I changed
 character[baseChar].Baseline
to
 character[baseChar].y

and it worked! Shouldn't the default baseline be the same as character.y ?
#845
.. because
if (cZombie1.x == player.x +10) {}   
is unlikely to ever being called. Characters don't walk pixel by pixel, so you should have an area for the zombie to attack:
if (cZombie1.x > player.x + 8 && cZombie1.x < player.x + 12) {}   


EDIT:

Quote from: Bogdan on Sun 10/04/2011 18:08:50
I didn't know there was that command

If you just type in "cZombie." the autocomplete window shows you every possible character function.
#846
I thought I commented on this one, but obviously I didn't  ::)

I like the style too and I'm looking forward to playing this.

Quote from: Atelier on Sat 09/04/2011 22:31:59
Sweet. This theme is criminally underused!

Indeed. I'm playing with the idea of a game in a stoneage setting myself for quite some time now, but I never got around to actually designing anything..
#848
Seconded! I'd vote for #3 too, the first looks way too cute for my taste.
#849
To clarify: Yeah, it is a recent post.

LucasFan announced the game 6 years ago (on the AGS forums too), then disappeared for years and seems to be back now, with ten different projects he has been and still is working on. Damn april fools indeed!
#850
Did you link the function via the lightning bolt icon or did you just copy/paste those lines?
#851
 ::)

1. You name the variable isDoorOpen

2. You choose the variable type bool

3. You set the variable to false


 ..other than that, Creator showed you what to do. Just ignore the first line where the variable is declared.

Edit: And don't put cVamp_UseInv() in the room script. It should be right there where AGS automatically puts it, in the global script. That's exactly why you need a global variable.
#853
There isn't much to say about the first one, it looks cool but doesn't show much. I like both BB entries. Yes, the pixel art looks a bit messy but it's quite nice nevertheless.

I'd say do some more backgrounds with the different styles and look what's most fun to do for you. Personally, I'd like to see games in both the second and third style, but if you want to stick to one, then take the one that is most fun and preferably less time consuming. Like chicky I'd prefer the third one if I had to choose.
#854
I noticed and enjoyed it  :)
#855
Critics' Lounge / Re: Clock Tower Background
Tue 05/04/2011 13:05:23
I guess it will be read as SookieSock just startet another thread in the critics lounge  ;)
#856
Quote from: barefoot on Mon 04/04/2011 17:01:27
Iv'e never played Journey Down

What? Do it, goddamit!  ;)

I had some troubles finding that exit too, btw.
#857
Yeah well, line 577 obviously is further down in your script. If we're supposed to help you, you should post the relevant code snippet.
#858
You need to put () around the conditions:

if (object[0].Visible == true) dVamp1.Start();
else if (object[0].Visible == false) dVamp3.Start();
#859
What exactly is your problem?
#860
The Rumpus Room / Re: Happy Birthday Thread!
Sun 03/04/2011 18:57:24
Happy B-Day Obi, creator of the funniest threads ever  :)
SMF spam blocked by CleanTalk