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

#4941
Yes, this is a tricky bit of timing. What you could do is this:

Code: ags

function on_mouse_click () {
  if (button == LEFT) {
    ProcessClick ();
    runmycode = 1;
  }
}

function repeatedly_execute () {
  if (runmycode) {
     MyCode ();
     runmycode = 0;
  }
}

#4942
That would certainly work. It's more convenient than Ascendancy (3-d rts) that uses the control key + mouse for the third axis.
#4943
Hm, that's interesting... I have been looking for this game for awhile, and I thought I had found it. But what I had contains a single room with a joke about the Emperor's New Clothes, and then the game exits. I thought, hey, it's a joke like Snail Quest.
But anyway. Apparently the game is bigger than that. So could any of you please send me a copy, or tell me where to download it, or something? Thanks!
#4944
Sure!

Sample entry:
pick up paperclip
whack Ernie with paperclip
turn on lamp

(though I hope other entires will be slightly longer :) )
#4945
Actually that is a good point, for anything from safecracking to Dr. Brain related games, a rotating dial would be nice. Of course you can use RawDrawLine and some sine/cosine bits to do the same, but a DrawRotated clock hand would be useful. I did a clock puzzle once and simply drew thirteen hands (yes, 13) and imported them as separate sprites.
#4946
Puzzle Time: Out of Sight, Out of Mind!

Rules: Every week a post will be made with a list of items and a scenario. Using your wit and skill find a way to complete the scenario with the items provided. You can only use a set number of items of your own choice. When I say use your skill, use it.

Voting: After the week, voting shall commence!

What if I win?: The winner chooses the next scenario and list of items. Plus a slice of digital pie. Or digital cookies. Or something more digitally wholesome, like a digital apple.

Scenario: You can't see a thing, and it's driving you crazy! This could be because of excessive smoke, a blindfold, damage to your eyes, a darkening spell cast by an evil wizard, or whatever. Obviously this means you can't use the look command. You must vent your angry vengeful feelings at whoever is the cause of this blindness, then find some way to reverse the effect (in that order).

Items: You must use at least four of the items listed below, and half of those must be found and picked up somewhere (as opposed to being in your inventory from the beginning). Additionally, you may use up to three items of your own choice.
A sponge
A paperclip
A fresh, juicy orange
A stepladder
A book
Salt
A crescent-shaped amulet
A squirrel
Tulip seeds
A red herring
A spork
An equilateral triangle
A frisbee
A magnifying glass
and/or pepperoni.

Special: You must meet at least one well-known character from another game, or movie, or book, or tv-show.
#4947
Does Allegro have something like a BlitRotated function? I think it would be most suitable if there was a RawDrawRotated() function in AGS, and maybe a rotate_angle variable for characters (just like the .z variable). That would mean a dynamic sprite, as several characters could have the same sprite but only one would be rotated. Hm, would that be a memory hog? Just my $.02
#4948
The answer to both is, in the room editor, you can set the 'scaling' factor for each walkable area. You can either make the entire area, say, 80%, or you can make it so that the top of the area is 50%, and the bottom is 125%.
Individual characters have a toggle that allows them to ignore this setting. Objects always ignore it.

I believe most games are linked, there is a thread in the 'finished games' forum (or was it the 'in production' forum?) which deals with suitable hosts.
#4949
And the problem you're probably experiencing, is that AGS has resized your old background to 640x437 (probably because you're using 640x400 resolution?). AGS automatically pads out the first background, but not the animating ones. So pad them out manually.
#4950
If you're new, do not create a blank game but rather use the 'basic' template. It has a visible mouse cursor, for instance.
#4951
Whee! Thanks!

And there shall be lots of pie for all participants, and anyone else who happens to read this thread!


Oh wait, does this mean I get to create the next contest?
#4952
The function 'repeatedly_execute (_always)' should keep on running, and any existing animations should keep going as well. Note that Display () blocks all of those, but DisplaySpeech () and DisplayTopbar () do not.
#4953
Under any windows version, the following method should work:
while runnin MI2, press the Print Screen key on your keyboard.
Task-switch to windows (e.g. press alt-tab, or the windows key, or quit MI2 or whatever).
Open up MS Paint (it's in the start menu, under accessories)
Click 'paste' (from the edit menu, or press control+v)

Other than that, try googling Screen Thief, it's the best.

#4954
Advanced Technical Forum / Re: Error in script
Fri 15/10/2004 14:41:16
If your error is that the function (repeatedly_execute_always) isn't found, you should write it:
Code: ags

function repeatedly_execute_always () { }

#4955
And don't use any plugins whatsoever, as they tend not to be portable.
#4956
I abstain from voting, for obvious reasons.

Ishmael -> I haven't played, nor heard of, Death Gate. Unless you mean the cycle of (not very good imho) fantasy books by Weiss & Hickman.

Out of curiosity, I've never participated in one of these before, but the rules for this contest seemed rather strict (e.g. start with certain inv items only, mandatory use of a taste/smell/listen/touch command, etc). Does adherence to these score you bonus points? Is non-adherence cause for disqualification? Or anything? (I don't mean to dis anyone, just curious as to how the voting works)
#4957
No, it's not buggy, it just depends on what you call your views.

You can put the title screen and intro in whichever room you like. Note that 'intro.crm' is room #0, not room #1. Bear in mind that the starting room for the player character should be your title screen room, e.g. 0 in your case. Then the title screen should have NewRoom (2) somewhere in its script.
#4958
StartCutscene (1);
SetCharacterView (EGO, INTRODANCE);
AnimateCharacter (EGO, 3, 5, 1);
Wait (80);
Display ("Welcome to this game!");
Display ("No really, I meant that!");
AnimateCharacterEx (EGO, 4, 6, 0, 0, 1);
AnimateCharacterEx (EGO, 4, 6, 0, 0, 1);
EndCutscene ();
NewRoom (5);


Edited out the capitalization errors.
#4959
Generally yes, but that's less of a problem in high resolutions and/or high-color environment. It's a matter of pixel alignment and anti-aliasing.
#4960
...except that the game's framespeed is limited by your computer's speed. For instance my computer won't go above 60 or so (if I set it to 80, it will behave as 60 since my computer isn't any faster than that). I doubt even top-of-the-line PCs would reliably hit 1000.
If you're willing to go for centiseconds, you'd probably get it to work.

Which leaves the question of what exactly you wanted it for, so you could get some more specific help.
SMF spam blocked by CleanTalk