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

#3301
Quote from: Kinoko on Wed 02/11/2005 08:28:16
ebby: I'm not even going to dignify that with an answer until you learn how to type. Anyone here that knows me knows what my "deal" with that game was. I'm hardly a "goddess" here anyway (that's Yuf!), someone was just... once again... exaggerating in the spirit of playing around.

You don't realise that ebby IS Yufster  ;)
#3302
Yes, but CJ: if you don't have control of the original function, i.e. a locked module or a plugin or if simply you're a n00b and cut-and-paste some code then it won't work... you have to go and ADD const to the function declaration. However, my workaround above works in those cases where you can't change the function...
#3303
Yes, the latest download has been upgraded to use the new Strings, and the dialog says 2.70 so he must be using an older one. I'm not sure if I have the old module, still. Maybe Rui has the old version on his resource site?
#3304
You're forgetting scrollable backgrounds, Scummy!

#3305
When I was young and always thought I was right, my christian background made me think that abortion was wrong. This got stronger when I met christian women that were also very against abortion: the media had until then given me the impression that being against abortion was something only done by men.

We (my wife and I) had a friend when lived in Bristol, however, who had had an abortion and poured out her heart to us once. She felt terrible for it, and froma catholic background it had really put her against the church, becasue she felt so condemned by it. Her situation was very understandable, but then look at the pain this had caused her. OK, so maybe some of that was her church's fault, but I've heard of non-religious women who feel terrible after thier abortions and regret it for the rest of their lives, too. My emotions were so mixed on the whole issue.

Then, when at 7 weeks pregnant my wife had some bleeding we went for an ultrasound scan and could see a tiny little blob, but with a beating heart, I felt amazed at this life. Then, at 12 and 20 weeks more scans showed what was obviously a tiny human being, I felt dead set against abortion. I loved both my daughters before they were born, and yet with both I was worried that I wouldn't love them enough. The day of their births confirmed for me that I did love them enough.

My heart is broken that there is not enough love in the world to support so many children, born and unborn. I've seen parents who treat their children as a burden, and abortion rates show that this applies to unborn children too.

Now, there are many instances where abortion becomes more acceptable: rape and even more so where the mother is at risk, but there are too many cases where it is used as birth control.

On the other hand, when abortion was illegal in the UK, girls just went to backstreet places and often both mother and child ended up dead or seriously injured. And in modern Ireland, people just fly to another European country where they can get it done.

My heart tells me that it is murder to kill this defenceless unborn child, and it makes me well up just thinking about it. But my head tells me that sometimes it is the lesser of two evils.

Its very hard to get past this to an issue like "Should the father be told". Well, I think that the father has the right to know, but telling him before the fact has a bunch of dangers associated with it. On the toher hand, maybe the wife assumed he didnt want it but when confronted with it he does. Personally, saving an innocent from murder has to be the overriding factor.
#3306
Usually an easier way of doing this is to set different interactions for the different types of object/hotspot/etc. and use IsInteractionAvailable

However, if you want to use properties, use:

if (Object.GetAtScreenXY(mouse.x,mouse.y).GetProperty("1"))...

N.B. All properties have string names
N.B.#2 Also, you may find that it doesn't path, in which case you may need to do:

Object *tmp=Object.GetAtScreenXY(mouse.x,mouse.y);
if (tmp.GetProperty("1"))...

#3307
Actually, it's one of the great things about the AGS community that most people only make at most one rubbish game with ripped sprites before they either leave or start making good games. Sometimes someone crops up out fo the blue with a totally cool game as their first, too.... not thinking of any mushrooms in particular  ;)
#3308
modge, Kinoko is a female geek. Male geeks are powerless to resist her commands.
#3309
I can't seem to discover how many walkbehinds are currently allowed. And how many would you want? I think these things are usually quite easy for CJ to up. I guess that there's an inherent limit of around 255, although you're probably only looking for about 30?
#3310
Kinoko: I had to shift-click it to get rid of the previously cached Error message...
#3311
Yeah well, you can count the number of AGS games with that happening on the fingers of one foot
#3312
I feel a module coming on...  ;)
#3313
OK then, there seems to be a BIT of interest! I'll maybe have a go myself, too.

Deadline is set to  the end of Friday 18th November, 23:59 GMT.
#3314
can't you use a script and SetWalkBehindBase to fake diagonals?
#3315
Ahah, I should have RTFM when I was helpign you on #ags  ;)

Quote
GetViewportY ()

Returns the Y-offset of the current viewport in a scrolling room. This allows you to find out what part of the room the player is looking at. The co-ordinate returned is the top edge of the screen, and so it can have a value between 0 and (ROOM HEIGHT - 200).

So change the code to:

Code: ags

if (IsKeyPressed(375)==true) {
  if (GetWalkableAreaAt(cEgo.x-1, cEgo.y-GetViewportY())==1) cEgo.x--;
}

if (IsKeyPressed(377)==true) {
  if (GetWalkableAreaAt(cEgo.x+1, cEgo.y-GetViewportY())==1) cEgo.x++;
}

if (IsKeyPressed(380)==true) {
  if (GetWalkableAreaAt(cEgo.x, (cEgo.y+1)-GetViewportY())==1) cEgo.y++;
}

if (IsKeyPressed(372)==true) {
  if (GetWalkableAreaAt(cEgo.x, (cEgo.y-1)-GetViewportY())==1) cEgo.y--;
}


obviously, you want to check that you're not going off the top/bottom of the visible screen, too and you may need to bump your character back into the middle again if you have irregular edges to the walkable area: the scrolling might make your char move off the walkable and get stuck if he's right at the edge of a wide bit then goes to a narrow bit

#3316
The idea of some people percieving things that others cant means that there is somethign out there that we dont understand is fallacious and assumes that our senses are infallible. Optical illusions prove this to be wrong, for a start. Also, our behvaiour and perceptiosna re very succeptible to chemicals like alchohol and other drugs and even things like sugar make a huge difference: most people are grumpy when tired or their blood sugar gets low: especially noticable with diabetics having a hypo.  And they dont realise that its happenign to themselves.
#3317
Now there's a great bit of work. I think the new String stuff only breaks things when you have a function that takes a string and you try to pass it a String. You can work around all these problems by:

String x
string y;
StrCopy(y, x);
oldfunction(y);

where oldfunction(x) would say "use const string"
#3318
Something like:

Code: ags

#define OFFSET 10
// in rep_ex
textwidth=GetTextWidth(guiObjLabel.Text, guiObjLabel.Font);
if (mouse.x > (system.viewport_width - textwidth) - OFFSET) {
  gTooltip.x = (mouse.x - textwidth) - OFFSET;
} else {
  gTooltip.x = mouse.x + OFFSET;
}
textheight=10; // assume fixed...
if (mouse.y > (system.viewport_height - textheight) - OFFSET) {
  gTooltip.y = (mouse.y - text.height) - OFFSET;
} else {
  gTooltip.y = mouse.y + OFFSET;
}




#3319
Quote from: Elliott Hird on Mon 31/10/2005 13:48:15
No, add it as a feature instead, it'd be useful.

Or, to put it politely, "I'd prefer that the function was fixed and documented, if broken, rather than removed"  ::)

Elliott, I know that you said in your first post that you have Aspergers, but don't use that as an excuse to order people about, especially our esteemed leader
#3320
Ummm, no we dont' know what you mean, that's why we said what we did...

Don't be cryptic: tell us the problem and maybe we can help!
SMF spam blocked by CleanTalk