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 - Calin Leafshade

#3181
in fairness its a pretty poor puzzle... :p
#3182
technical achievement was one of the goals. I like coding special effects for some reason.

The next episode has particle effects :D
#3183
who did you promise?

It's got to be a woman... Shes not worth it, man. NOT WORTH IT!
#3184
Quote from: Revan on Mon 30/11/2009 00:21:04
Found another (still playing lol)

Spoiler
The day after the wolf attacks sarah (1st sighting of the wolf) i went back into her room, and the window was intact. its also intact from the outside (not sure if this is plot or a mistake yet.) just thought id flag it up.
[close]

Thats created by a particularly serious bug in AGS. It's called laziness.
Spoiler

Lets assume sarah fixed the window. Shes industrious like that
[close]
#3185
yeah thats how i fixed it.. but i thought id flag it up as a bug anyway.
#3186
Quote from: Revan on Sun 29/11/2009 23:50:05
Loving the game so far...

Couple of small bugs:

Spoiler
there is no voice acting when you use at the doorbell of the mansion
[close]

Spoiler
after talking with Mr Grovesner in his study for the first time I looked at the door Id just come in from (on the right) and Macarthy said "It doesnt answer me" and when i talk to it it says "it's a door" 
[close]

i'll keep playing and let you know if i find any more... Love it so far though...

ahh shit i meant to fix both of those.

thanks for flaggin them up
#3187
Quote from: markbilly on Sun 29/11/2009 22:46:56
Is the
Spoiler
big long corridor full of locked doors
[close]
a general adventure reference?

nope, its just a room with some doors in :p
#3188
yeah this wont play on your average 1.2ghz atom processor.

but it seems to cope fine with most desktop processors. anything above a 2ghz should be ok.

Im fairly sure i couldve coded the effects a little more effectively but i didnt realise at the time how processor intensive they would be.. i'll release another version soon with the effects switchable for people with old computers
#3189
-----------------------------------
The McCarthy Chronicles: Episode 1.
-----------------------------------

A film-noir inspired, supernatural detective story.

Rick McCarthy is a private detective marred by a secretive and destructive past.
He is pulled into a world of blood sacrifice and invocation.
Can he hide his past, solve the crime and get the girl?



Controls
----------
Left click to move,
Hold the left button to interact,
Move the mouse to the top of the screen to access the inventory.

Notes
-----------
The McCarthy Chronicles is quite processor intensive due to all the visual effects used. Do no run the game in a higher resolution than necessary. 320x200 is ideal though some LCD monitors may require 640x400 to avoid non 1:1 pixel mapping (Change it to 640x400 if the image appears blurry)

Ensure 'Enable Alternate Letterbox Resolution' is enabled.

The McCarthy Chronicles does not support Directx9 acceleration. Use Direct Draw mode

Download: http://www.adventuregamestudio.co.uk/games.php?action=detail&id=1243

And remember to vote after playing.
#3190
yup that works.. thanks
#3191
I know that drawing surfaces dont support 8-bit alpha channels but is it possible to paint to the 1-bit alpha?

in a 16-bit game you would just paint (255,0,255) to the sprite to make it transparent. but in a 32-bit that doesnt work. is there an alternative?
#3192
heh oh yeah.. idiot.

thanks  ;D

Edit:

I can draw things to the dynamic sprite/object fine unless i try to make the particles transparent.. do Objects support Alpha channels?
#3193
Is it possible to animate an object using a dynamic sprite?

I planned to use an object at (0,240) to draw to so that the particles were always on top of everything else but for some reason it just doesnt seem to want to update in rep_ex.
#3194
I would have no problem with there being a praying/wishing game in theory.. I think it would be bollocks largely because it would be a shit game and because it's saying that God is real. Demony games dont claim to be fact :p

Battling demons is more fun than wishing anyway.

Altho incidentally I do like alot of games with God in.. God is a fascinating fictional character and many many good narratives have been based on the character.

Every game which deals with demons and hell and vampires etc will have God in.. God is the necessary other side to the coin. So in fact most games have god in.
#3195
incidentally i would DEFINATELY buy a praying game.

I'd feel blasphemous.
#3196
how about this?

a (messy) adaptation of khris's code to add a kind of additive dissolve effect.

Code: ags

void ScreenEffect() {
  DynamicSprite*line[240];
  DynamicSprite*Buffer = DynamicSprite.CreateFromScreenShot();
  DynamicSprite*Black = DynamicSprite.Create(320, 240, true);
  DrawingSurface*ds;
  ds = Buffer.GetDrawingSurface();
   DrawingSurface*BG;
      BG = Black.GetDrawingSurface();
      BG.Clear(16);
  
  int i;
  while(i < 240) {
    line[i] = DynamicSprite.CreateFromDrawingSurface(ds, 0, i, 320, 1);
    i++;
  }
  
  
 
  
  i=0;
  int y;
  int x;
  int end = 300;
  
     
    

  while (i<end) {
    y = 0;
    
    while (y < 240) {
      x = FloatToInt(Maths.Sin(IntToFloat(i+y)/30.0)*IntToFloat(i));
      
      // additional displacement
      if (y%2) x = -x;
      line[y].Tint(255, 255, 255, (i*100)/end, 100 - ((i*50)/end) + 50);
      ds.DrawImage(x , y + Random(4) - 2, line[y].Graphic, ((i*50)/end) + 50);
      
      y++;
      if (i == end) line[i].Delete();
    }
    if (i > 200) ds.DrawImage(0, 0, Black.Graphic, 100 - (i - 200));
    Overlay *myOverlay = Overlay.CreateGraphical(0, 0, Buffer.Graphic, true);
    int z;
    while (z < 240) {
    line[z] = DynamicSprite.CreateFromDrawingSurface(ds, 0,z, 320, 1);
   z++;
  }
    
    Wait(1);
    i++;
  }
  ds.Release();
  BG.Release();
}


EDIT: hold on the Txt speak thing edited my code.. surely code should be exempt, admins?

Fixed, i think.
#3197
Thats very very nice, Khris.

and certainly much more elegantly coded than mine.
#3198
nooo... I was going to steal him..

I'll fight you for him...
#3199
There's no way thats serious.

I mean.. thats just bollocks.
#3200
Advanced Technical Forum / A visual effect.
Fri 27/11/2009 09:41:13
Im not sure if anyone has asked for artistic critique on some code before but i'm trying to create the classic 'Lets go have a turn based battle" visual effect found in most JRPGs but i feel it could use some improvement.

The code should be pasteable straight into a game, it has no dependencies. It must be a 320x240 game or you must alter the values.

I apologise for the messiness.. i havent cleaned it up yet.

'paintovers' and ideas are very welcome

Code: ags

function DoBattle(){
  int Displacement[241]; //displacement for each line
  int Transparancy1[241]; // Transparencies for edges 
  int Transparancy2[241];
  
  
  DynamicSprite *ScreenShot = DynamicSprite.CreateFromScreenShot();
  DrawingSurface *ScreenShotSurface = ScreenShot.GetDrawingSurface();
  DynamicSprite *CurrentFrame = DynamicSprite.CreateFromDrawingSurface(ScreenShotSurface, 0, 0, 320, 240);
  DrawingSurface *BG = Room.GetDrawingSurfaceForBackground();
  int i = 0;
    DrawingSurface *CurrentFrameSurface = CurrentFrame.GetDrawingSurface();
  
  while (i < 241){
    Displacement[i] = 0; //reset displacement
    i++;
  }
  
  bool Loop = true;
  Displacement[0] = -5;
  while (Loop){
    i = 1;
     CurrentFrameSurface.Clear(16); //clear surface with black each frame
    while (i < 240){ //for each line
         
    DynamicSprite *Line = DynamicSprite.CreateFromDrawingSurface(ScreenShotSurface, 0, i, 290, 1); //take a line from the screenshot
    DynamicSprite *Line2 = DynamicSprite.CreateFromDrawingSurface(ScreenShotSurface, 270, i, 40, 1); // take 2 more chunks for fading out the lines
    DynamicSprite *Line3 = DynamicSprite.CreateFromDrawingSurface(ScreenShotSurface, 300, i, 20, 1);
    
    if (Displacement[i] > -320) { //if the line has started to move
      Line.Tint(255, 0, 0, Displacement[i] * (-4) / 8, 100); //tint the lines
      Line2.Tint(255, 0, 0, Displacement[i] * (-4) / 8, 100);
      Line3.Tint(255, 0, 0, Displacement[i] * (-4) / 8, 100);
      CurrentFrameSurface.DrawImage(Displacement[i], i, Line.Graphic); //draw line
      
      CurrentFrameSurface.DrawImage(Displacement[i] + 270, i, Line2.Graphic, Transparancy1[i]);
      CurrentFrameSurface.DrawImage(Displacement[i] + 300, i, Line3.Graphic, Transparancy2[i] );
      
    }
    Line.Delete();
    Line2.Delete();
    Line3.Delete();
    i++;
    }
    
    Overlay *myOverlay = Overlay.CreateGraphical(0, 0, CurrentFrame.Graphic,  true);
   
    BG.Clear(); //clear BG.. probably not necessary.
   
    Wait(1);
    i = 1;
    Displacement[0] -= 5;
    while (i < 240){ //update displacement array
      
      if (Displacement[i-1] < -5) {
      Displacement[i] = Displacement[i-1] + 5;
      Transparancy1[i] = 50;
      Transparancy2[i] = 80;
      }
      i ++;
    }
    if (Displacement[239] < -320) Loop = false; //if last line is offscreen
  }

    ScreenShotSurface.Release();
  ScreenShot.Delete();
  CurrentFrameSurface.Release();
  CurrentFrame.Delete();
  BG.Release();


  
  
}


EDIT: I apologise for posting in the wrong forum but I have to question your rationale for putting it in the the Talk and Chat forum.

Surely the Technical forum or Critics lounge are the only two applicable forums?
SMF spam blocked by CleanTalk