Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.


Topics - AnasAbdin

Pages: [1] 2 3 4
1
I tried so hard to do a task, and when I got desperate I honestly searched a little :-[

What I'm trying to achieve is to give the player the ability to draw lines on a specific area on the screen. I'm using a GUI as the area. And a hHotspot1_Interact() as a trigger. The effect I'm looking for is the same idea when drawing lines using normal paint programs. That is, when the left mouse button is pressed over a point and the mouse moves while the button is still down, a line is drawn between the clicked point and the current mouse location no matter where it moves.

I managed to do that part well.

Then, when you finally decide that the line is perfect for you, you release the mouse and the line is drawn permanently. I managed to make the final line gets drawn but not permanently. It stays until you try to draw another line then it disappears :-\

I'm sure I have missed something simple, or misplaced a lines.. and that I would be embarrassed later :-[
Could someone please help?

Here's my code:

Code: Adventure Game Studio
  1. // room script file
  2. int prev_mx, prev_my;
  3. DrawingSurface *surface;
  4.  
  5. function hHotspot1_Interact()
  6. {
  7.   DynamicSprite* Field_Spr = DynamicSprite.Create(640, 300, false); //drawing area is top 3/4 of the room..
  8.  
  9.   surface = Field_Spr.GetDrawingSurface();
  10.  
  11.   //The desired GUI to be drawing into
  12.   gCSTiles.Visible = true;
  13.   gCSTiles.Clickable = false;
  14.  
  15.   //saving the previous mouse xy
  16.   prev_mx = 0;
  17.   prev_my = 0;
  18.  
  19.   //saving the first point of the line
  20.   int mx = mouse.x;
  21.   int my = mouse.y;
  22.  
  23.   //The lines is drawn here and moves smoothly with the mouse movement
  24.   while ( mouse.IsButtonDown(eMouseLeft) )
  25.   {
  26.     surface.DrawingColor=65535;
  27.     surface.DrawLine(mx, my, mouse.x, mouse.y);
  28.     Wait(1);
  29.     //clearing the old line until the player is satisfied with another line
  30.     if ( mouse.x != prev_mx || mouse.y != prev_my )
  31.     {
  32.       surface.Clear();
  33.       surface.DrawLine(mx, my, mouse.x, mouse.y);
  34.     }
  35.   }
  36.  
  37.   surface = Field_Spr.GetDrawingSurface();
  38.   //draw the 'permanent' line
  39.   surface.DrawLine(mx, my, mouse.x, mouse.y);
  40.  
  41.   gCSTiles.BackgroundGraphic = Field_Spr.Graphic;
  42.   surface.Release();
  43. }

2
The Rumpus Room / What's on TV?
« on: 26 Jun 2017, 21:48 »
Like the sister thread *Guess the Movie Title* try to guess what's on TV now, a guess should be complete though mentioning the title, season and episode numbers as well.
Here's something to begin with:



3
<< Coloring Ball: Furniture >>


I have a 2x2 meters empty space in my living room. I don't know what piece of furniture to put there. I don't mind what material, style or age. All I care is to get a unique piece that has a story behind.

The piece of furniture should be within this shape:



You can fill the shape and the outline
You can use semi-transparency but no empty pixels or complete transparent parts allowed
You can flip the shape horizontal or vertical
You can rotate the shape 90, 180 or 270 degrees
You can use animations (plz do!)

Trophies:

1st2nd3rd

Last day for delivery will be April 25th.

Okay! Great entries everyone! Time to vote 8-)

1. DBoyWheeler
4. blur
2. blur
5. arjOn
3. Tabata
6. Cassiebsg

I can't envy you it's a hard decision! 8-0
Please vote by using the number of the entry as follows:

First: x
Second: y
Third: z


Good luck everyone!
Voting ends May 6th!





Winner Announced!

..aaaaand we have a winner!

Third place goes to Cassiebsg for the Arc-Sim gaming system!


Cassiebsg please enjoy your 3rd place trophy!

Second place goes to blur for the Kitschy Digital Cat Clock!


blur, here's your 2nd place trophy!

Let's all give it to our winner of this coloring ball, arjOn for the 2x2 meters inflatable party swimmingpool with a water slide!


arjOn, please accept the first place trophy!

Hope to see you all soon in the next Coloring Ball by Mr. arjOn! Can't wait to see what he's hiding for us! (laugh)

Thank you all for participating, voting and helping me make this coloring ball! And special thanks to Klatuu and Kumpel for their creativity even though they didn't make it in time, I can still find a spot in my house to add those beautiful pieces :-*


4
This is totally for a cosmetic reason.
I've been toying with the idea of making a few leaves fall of trees and a few dust particles here and there.
I also came to some parts where I will have to introduce rain.

So I thought, I came to the point where I must use the snow/rain plugin or anything similar I might be unaware of. I wanted to know ask first before I use it.

Game's settings:
AGS 3.3.3
640x400x32


  • Which is the best version to use for the game's settings?
  • Can it be used to rotate the sprites while they fall?
  • Can it emit as few as 3 sprites only?

5
Critics' Lounge / Framing a room
« on: 18 Oct 2016, 07:14 »
Well, I am in the middle of creating a room full of objects and trivial details. I used the word 'trivial' but I don't really believe there are trivial pixels in adventure games. You can never depict where players can find clues..

So in order to make things more fun, I though maybe if the "less important" details could be reduced in size, players might get the impression that they are not that important after all without ruining the art. Those objects will be scattered all over the room which is an interior of an antiques store.

I thought maybe I can pull a King's Quest V trick by reducing the size -hence resolution- of the room and putting it in a frame over a background of the store's exterior (of which is another room in the game)..

What do you think of this technique?
Do you think I used it correctly? Any changes? thoughts?



6
Advanced Technical Forum / Animating TextWindowEdge
« on: 09 Oct 2016, 07:17 »
The title says it all.
Is there a way to animate the edges of display text boxes? (e.g assign the edges to views..)

7
General Discussion / Java applications on github
« on: 22 Aug 2016, 18:55 »
Hi all :)
I am looking for applications in github for a research study. I've used many and I cannot reuse what I have found in future researches ???
If you happen to know any good java application that has a bug record please let me know!

Applications requirements:

  • Must be written in java and has .java files in the github bracnhes
  • Must have at least 3 years of revisions history
  • The more bugs the merrier
  • Must have at least 300 java classes (also the more the merrier)

Please let me know if you came across any good candidate over there :-* The domain and the platform of the software is not important. If you're not sure about the number of classes (or the number of bugs) please don't hesitate to mention the application, I can search for those ;)

8
<< The Fabric of Spacetime >>


Anomalies are happening everywhere in the universe. Scientists can't decide what are they yet. So far, most of the theories are going with random cracks in the fabric of spacetime. Scientists sent a few objects through them and they just disappeared and never came back. Some theorists claim they are time rips, specially that some major historical evens have changed after a few people jumped in some of them. The cracks can appear anywhere, in public places, under your dinning table, in the middle of the ocean, in the atmosphere... they have no limits.

Their shapes are different but mostly like this sprite:



They can be rotated 90, 180, 270 degrees
They can be flipped horizontally or/and vertically
The outline can be colored
They MUST be animated
The animation is at least 3 frames *


Trophies
Space Quest IV TimeRipTM

       


Deadline is August 16th 2016, however due to the current events, there is a chance someone may travel through time and change this date.


* Except animations using color cycling



Voting Time!

Please vote for your favorite 3 entries by mentioning their corresponding numbers under each animation! To make things easier for everyone please use this format:

First: ##
Second: ##
Third: ##

Good luck to all participants! Voting ends August 25th 2016!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Add spoiler tag for Hidden:

No. 16 (nsfw)

Winner Announced!

The participant sprites were literally in a race fighting for the first place! As I was calculating the score, some were fighting very well for the trophies (nod)

3rd Place


by CaesarCub
2nd Place


by Riaise
1st Place


by Cassiebsg

Congratulations Cassiebsg for winning this coloring ball! and Congratulation to Riaise & CaesarCub for the 2nd and 3rd trophies!
Thanks to all contestants, all your sprites are wonderful and are now placed in The Intergalactic Museum Of Cracks (laugh)
Thanks to all voters and everyone participating in this coloring ball :-*

I'd like to personally thank both Creamy and Blondbraid for letting me host this coloring ball since they were the winners of the previous one and a little too busy :)

See you soon on the next Coloring Ball by Cassiebsg!


9
Advanced Technical Forum / Fading day/night
« on: 30 Mar 2016, 10:03 »
Hi all,

I have two backgrounds for a room, (0 = day, 1 = night )
I can change between them using SetBackgroundFrame.

However, I found this code extract in the manual:

Code: Adventure Game Studio
  1. DrawingSurface *mainBackground = Room.GetDrawingSurfaceForBackground(0);
  2. DrawingSurface *nightBackground = Room.GetDrawingSurfaceForBackground(1);
  3. mainBackground.DrawSurface(nightBackground, 50);
  4. mainBackground.Release();
  5. nightBackground.Release();
  6.  

I am trying to make the day background fades into night. The manual says:

Quote from: AGS Manual
TIP: If you want to gradually fade in a second background, create a copy of the original surface and then restore it after each iteration, otherwise the backgrounds will converge too quickly.


I'm not sure what I'm doing wrong, it is working exactly as the manual warned: (otherwise the backgrounds will converge too quickly)

Code: Adventure Game Studio
  1. DrawingSurface *mainBackground = Room.GetDrawingSurfaceForBackground(0);
  2. DrawingSurface *nightBackground = Room.GetDrawingSurfaceForBackground(1);
  3. DrawingSurface *copyBG = mainBackground.CreateCopy(); //is this a correct way to create the copy of the original surface?
  4.  
  5. int i = 90;
  6. while ( i > 0 )
  7.   {
  8.     mainBackground.DrawSurface(nightBackground, i);
  9.     // I'm not sure how to use the copyBG here and how to restore it :/
  10.     copyBG.DrawSurface(mainBackground, 0);
  11.     i --;
  12.     Wait(1);
  13.   }
  14.  
  15. mainBackground.Release();
  16. nightBackground.Release();
  17. copyBG.Release();

Game stats:
AGS version 3.3.3
Res 640x400 32 bit
Direct 3D 9 hardware acceleration


Thanks in advance  :)

Edit:

I managed to get a gradient effect with this:

Code: Adventure Game Studio
  1. DrawingSurface *mainBackground = Room.GetDrawingSurfaceForBackground(0);
  2. DrawingSurface *nightBackground = Room.GetDrawingSurfaceForBackground(1);
  3.  
  4. int i = 90;
  5. while ( i > 10 )
  6. {
  7. mainBackground = Room.GetDrawingSurfaceForBackground(0);
  8. mainBackground.DrawSurface(nightBackground, i);
  9. i --;
  10. Wait(1);
  11. mainBackground.Release();
  12. }
  13.  
  14. nightBackground.Release();
  15. mainBackground.Release();
  16.  

10
Hey all :)

I am stuck at this, I am trying the following:

When the player clicks a hotspot, a dynamic sprite appears at (x1,y1) and moves to (x2,y2) NoBlock style, then disappears or get ignored behind a walkbehind if possible.
I managed to make the dynamic sprite appear, but I can't make it move non-block. And I can't control its baseline (it is even possible?)

This is by far what I managed to do: (creating and displaying the sprite) :-[
Code: Adventure Game Studio
  1. DynamicSprite* stone = DynamicSprite.CreateFromExistingSprite(object[1].Graphic);
  2. DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
  3. surface.DrawImage(100, 280, stone.Graphic);
  4. surface.Release();
  5. stone.Delete();

Edit:
The player can click the hotspot again while the dynamic sprites from the previous clicks are displaying and moving.

Note that when the use of dynamic sprites is introduced to me.. I panic.

Game info:

AGS 3.3.3.0
res: 640x400 32-bit
Direct3D 9

11
<<    AGS Murder     >>






Ta Tata..   Ta Tata!


Ta Tata.. Ta Tata.. Ta Tata.. Tata Tata!

A murder has shocked the AGS community. An AGSer's body have been found brutally killed in their apartment. However, the murderer forgot that you - a simple Coloring Ball artist - managed to capture evidence that lead directly to the murderer. Help solve this crime by filling this hand crafted shape:




So far, we know that the murderer is AGS related, they could be an AGS game character, or even an AGSer. Draw clues that lead to the murderer but please do not point directly to them. Let us guess as soon as we see the filled shape. The identity of the victim should also be indicated in the drawing, also let us guess.

Criminal Laws:

You can color the outline.
The shape can be rotated 90, 180, 270, 360 degrees only.
You can flip the shape horizontally or vertically.
You are allowed to use animation.


AWARDS (1st, 2nd, 3rd, and Guest of Honor)

Murders due date is March 31st where accusations begin


Voting

Please consider the following cases and vote for your favorite witness

Murderer
Witness
Victim
Jack the Ripper

moloko

AGA

Andail

Yitcomics

Snarky

AprilSkies

Kumpel

AnasAbdin




As for selmiak's entry. I decided to give it the guest of honor medal because both the murderer and the victim were not based on AGS characters.

Voting is open until April 8th


Winner Announced!

Thank you all for voting! Three AGS-murder cases have been solved. Thanks to our great witnesses and their talent illustrating the crime scenes.

3rd place:
moloko
2nd place:
Yitcomics
1st place:
Kumpel

Our lovely selmiak got the Guest of Honor medal:


As for the murderers, the authorities are working hard to find and arrest Jack The Ripper. As for Andail and AprilSkies, we are glad to announce that they have been arrested and sentenced to make AGS games for the rest of their lives (laugh)

Our hearts and thoughts go to the victims' families: AGA, Snarky and AnasAbdin, you'll always be missed.
Now if you'll excuse me, guy at the gate won't let me in unless I complete my AGS project :-\

See you in the next Coloring Ball hosted by our winner Kumpel ;-D

P.S. Hey AprilSkies.. Every time you hear a door creak, see a flickering light.. know that I'm not done with you yet


12
General Discussion / Planet IX
« on: 21 Jan 2016, 16:40 »
If you are interested, a new study shows evidence that a Neptune-sized planet lurks beyond Pluto in a distant orbit that completes a spin around the sun every 15,000 years.

This is a link to the journal: EVIDENCE FOR A DISTANT GIANT PLANET IN THE SOLAR SYSTEM
It is also available as a pdf

This image shows how far the orbit of Planet IX and the current location of Voyager 1

Here's the orbit of Planet IX



An explanatory video:

[embed=640,390]http://www.youtube.com/watch?v=42GeoCVaZQg[/embed]

13
Beginners' Technical Questions / Rotating large sprites
« on: 19 Jan 2016, 07:40 »
Hello :-[

I am trying to make a sprite that is larger than the room to rotate. The sprite covers the entire room and tens of pixels more in each direction. I'm trying to make it rotate around the center of the room exactly at the point[320,200] forever. I tried using dynamic sprites but I couldn't make it work.

Question 1: Will it slow the game?
Question 2: How do I do that? ???


This is an illustration of what I'm trying to do:



14
Let me phrase this the best I can :-[

I have an object that has a baseline less than a walkbehind area.
The object MUST be drawn behind the walkbehind.
The character shouldn't get affected by the walkbehind.
However, the character should be drawn behind the object.

I gave the character a baseline less than the object's baseline. And tried this:

Code: Adventure Game Studio
  1. cEgo.IgnoreWalkbehinds = true;

but still, the object is always drawn behind the character.
Is there a way to solve this?
Thanks ???

15
I'm trying to make a character do something when stepping into a region. In theory this should work perfectly. But practically and under the conditions I'm using this is not the case. It works sometimes; and doesn't work in other times...

AGS version 3.3.3, December 2014
The game is 320x200 32 bit
The character is 5x5 pixels
Tween module v2.0.1 by Edmundo Ruiz et al. (I'm using the EaseOutSineTween)


-Sometimes the character moves (NoBlock) into the region without any reaction. When he stops completely the region's 'belated' action is executed.
-Sometimes the character ignored the region completely

For the first case, I suspected that the tween module might have been the problem, specially that I'm using an EaseOutSineTween which tends to slow down the movement towards the end right before stopping completely. Yet still when the character is at the beginning of his movement he can ignore the region completely.

The region is about 100x30 pixels which is quite large for the little 5x5 character to be detected. But even though, I still have to create 1 pixel thin regions for later. Is this going to be a problem? Should I consider using objects instead? If so, will they collide better?

Thanks ???

16
<<        Tiles        >>


This coloring ball theme is Tiles. Prepare you interior designer skills and create 3 different tiles for any purpose. It can be for a kitchen, spaceship, bathroom, spaceship bathroom, living room parket flooring, sidewalks, spaceship. It is compeltely up to you, you can even use the tiles for a spaceship. You may use any material, design and color. Although they say gray metal is best for spaceships. But it's all up to you.

You get to fill these beautifully hand crafted shapes:

          

After filling the tiles, show us your awesome arrangement(s) so we can install them according to your design and decorate our houses, sidewalks and spaceships...

Rules:

Tile filling phase:
All 3 shapes must be filled.
You can color the outline.
The two squared shapes must not be filled the same.
All shapes can be rotated 90, 180, 270, 360 degrees only.
You cannot flip any of the shapes horizontally or vertically.
You are not allowed to use transparency or animation.

Arrangement phase: [optional]
You created the tiles, you have unlimited supply of each.
The arrangement must have at least one of each of the three tiles.
You cannot make gaps between the tiles.
Gaps are allowed only in examples such as walls containing windows and/or doors.
The final arrangement can take any shape, even if a square wave appeared due to the rectangle tile it's still accepted.

Submission deadline is October 31st where the voting begins November 1st

Trophies

1st         2nd         3rd
          

From now on, I'd like to ask whoever hosts a CB to use '<< previous' and 'next >>' hyperlinks to connect all AGS Coloring Ball competitions :)



Voting Time!

Please vote for your top 3 favorite entries for this coloring ball!
The entries are (in order of manufacturing) :
(Please click the link of each entry to check out the arrangements in the original post of each contestant)

1. Tiles are not their thing but look at that magnificent patternt:

       

2. They are on sale, but they are precious and guarantee a smile on your face:

         

3. Are those the best spaceship protectors or what?

       

4. Not for the weak heart. This Halloween collection is surely a treat

       

5. Brick city? I'm moving there!



6. Brick city needs infrastructure. Here come some leaky pipes

       

7. This magnificent Halloween collection is what you need for the trick part

       

Please vote for your favorite 3 entries!
Voting ends next week November 8th
Good luck all!



WINNER ANNOUNCED!

Thanks all for your votes :) The winners of this Coloring Ball are:



Third place is shared between:
Grok & Tabata
   


Second place:
Mokho



and the first place goes to:
Gurok


Congrats Gurok for the win! Your leaky pipes saved the day!

Thanks all for the wonderful entries and votes :) Hope to see you soon on the next Coloring Ball by Gurok!


17
Well after Vincent started this thread in the Beginners' Technical Questions. I remembered trying to make a pool game with AGS a year ago. I didn't spend much time with the Math because I was too busy with my other AGS projects. So when I met my first obstacle I ran away like a kid.

Here's the situation, there is an object (1 ball only) when the user clicks and holds the mouse button a dotted line is drawn between the ball object and the mouse cursor. So when the mouse moves a little further the line gets longer, and when nearer the line gets shorter. The line also moves along with the cursor. However, there is a limit to the line (e.g not more than 50 pixels..) the length of the line indicates the strike strength. The position the ball would move to is calculated from the mouse and current ball position... of course the line is cleared when the mouse button is released.



I found an old topic with a similar idea but using old RawDraw commands which drove me elsewhere. How can I achieve this effect with AGS 3.3 and later? I'm not asking for a full code script, but the general idea on how to achieve this (dotted effect)
Many thanks in advance :)

18
I got this error message and I have no idea what's causing it  :-\

Runtime error: Function still open, missing }    |     GlobalScript.asc     |    line -10



AGS v3.3.3, December 2014
640*400 32 bit
Windows 7 Professional

19
Critics' Lounge / Opinions & suggestions on Trailer
« on: 10 Aug 2015, 11:50 »
I'd like to borrow a couple of minutes from your precious AGSing time *gulp*

When it comes to trailers I find myself facing a nightmare! It seems I can't capture what to put and how to present the project's elements properly. I made an unlisted video trailer demo to have your opinions and any thoughts on how to improve it. Audio is still an overlapped music track form the game... will see what to do with it :/

Here's the trailer demo:
[embed=640,390]http://www.youtube.com/watch?v=c9YoAorWHXg[/embed]

At the end, I will add logos of where the game is found (e.g steam, indiedb..) and flags of the countries of the available languages and other info.

Well..

Halp!

20
The Rumpus Room / Where is tabata?
« on: 19 Jul 2015, 13:47 »
:~(

Pages: [1] 2 3 4