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 - T-Pr

#1
OMG! Thank you both very much , i used both of the codes and they worked :D , thank you both :) .
#2
Hi everyone , i want to make a simple Skill Point System , and i wanna make the gui of it . So , i made sumthing like that ; ( of course more cool  8) )



This my gui background. In my gui , i made a background from this for example . So there is no button or labels , just image. I want this :

When mouse comes over " fighting " there will be description of the fighting in description box. I simply thought , if it was a room , i can make a hotspot on somewhere and label on gui , and enter @HOTSPOT@ to text of the label . But there is no room this is just a gui and it's image so i can not do any hotspots. So how can i do this ? I thought maybe i can make a real gui button instead of the button in the image but there will be no difference i think there is no function to write something on the label when you come over the gui button . So please help me .

And also i thought , eLocationNothing , but i just couldn't figure out how to use it in this situation.

( Simply : How can i write something on the label in gui1 when you come over a specific area on the background image of gui1 ? )



Greetings , T-Pr
#3
@Studio : Not exactly, i want it to play whenever i move on hotspot . If you try the script i gave first in one room you will understand my problem exactly :). But monkey solved it now.

@Monkey: Thanks a lot :) . We can say that you are my hero for today :D . It's working clearly , thank you again :).

Again guys thank you both :).
#4
Actually , it worked but now it's just playing once , let me explain my room. It's a menu , there is a window and hotspot1 over the window. When the mouse comes over hotspot i want that sound to be played just once , but when i leave my mouse from the hotspot and bring it back to the same hotspot again , i want that sound to be played again , but just once ofcourse . In my scripts , whenever i move my mouse over hotspot WITHOUT leaving hotspot it always plays that sound.

Thank you , but if there is another solution , i still need help. :)
#5
Hi everyone , i searched my problem everywhere i tried a lot of things but i couldn't solve it. My problem is the same here ;

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=8160.0

let me explain , when i move my mouse over the hotspot i want aMenuC sound to be played ONCE . But in my script ; when i bring mouse over hotspot it happens all the time i can't move my mouse when i do it thousands of aMenuC sounds are playing. My code is ; ( whole room code )

Code: ags


// room script file

function hHotspot1_MouseMove()
{

gCik.Visible = true;
}

function room_Load()
{
  StopMusic();
gGos.Visible =false;
}


function hHotspot1_AnyClick()
{
aMenuC.Play();
QuitGame(1);
}

function room_RepExec()
{
   

if (GetLocationType(mouse.x,mouse.y) == eLocationHotspot) 
 {
  
    aMenuC.Play();
    Wait(1);
    aMenuC.Stop();
 }


}


I tried this ;

aMenuC.Play();

and this ;

aMenuC.Play();
wait(1);

and this
aMenuC.Play();
wait(1);
aMenuC.Stop();

and also i tried them by making wait 's to wait(40) but it wasn't the solution.

i tried putting them in repeadetly execute by the help of if function , and i also tried to put them in mouse over hotspot function , but i couldn't solve it ,please help .

greetings, T-Pr
#6
thank you very very much :), i changed it a little bit by using your codes in a way ;,


Code: ags



function room_FirstLoad()
{

int trans = gYazi1.Transparency;
while (trans > 0) {
  trans--;
  gYazi1.Transparency = trans;
  Wait(1);



}
  
while (trans < 100) {
    trans++;
    gYazi1.Transparency = trans;
    Wait(1);
    

}

player.ChangeRoom(8, 0, 0);
}




and it works , thanks a lot again :D .
#7
Hi everyone , i really suck at making credits , texts or such thing :P . I want this , for example , in some movies , there is a black screen and there is a text which says T-Pr Production . But this text doesn't appear quickly , it appears slowly like it's transparency is increasing , and then it disappears slowly again like it's transparency is decreasing. So how can i do that in my game , i want to do that at the beginning like credits in for example left top corner of the room.
#8
AGS Games in Production / Messy Teenagers
Mon 17/01/2011 16:58:53
Hi everyone , i'm gonna introduce you the game i'm in process of . This game is about adolescents which are involved in some bad works.

    Evren is a teenager who wants to be *somebody* in his life. But while he's trying this , he deals with wrong people and works. There are gang wars and crimes around the city. He tries to get out of this bad way.

    In the game , you will be in fights , in exams and other puzzles.
    Also i add money system , health system , time system and skill point system. And ofcourse it's gonna be with voice. I'm gonna do the all the voices by changing their pitch .

Skill points will enchance your timing about pressing the given buttons in the game. ( For example in a fight , you need to press the button which is occured suddenly in the screen in 0.5 seconds to evade from the enemy's punch , if your fight skill is improved , you will have 2 seconds to press that button. )

Here are images ;






Also ,i'm using SSH shadow module ;

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=28905.0

and it's fix by Dusk ;

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=35404.0

The game has 1024x768 resolution.

I'm waiting for your comments :) .  ( don't think that images are the same background , they are 2 different backgrounds and rooms , first is room 8 , second  is 21 )
#9
Hi everyone , i'm having some problems with NPC's and i need the code to be fixed. I need npc to walk in different rooms randomly. For example npcs 1 is gonna start in room2 and walk to the right edge of the room2 and go to room3 then maybe while he was moving to the right edge of the room2 the npc in the room3 is gonna come to the room2 i mean i want to do this , so i simply tried this to move the cKiz character to the right edge , and then make it start from the again left edge of the room and it will seem like it went off the room from right edge and another character came from the left edge of the room or sumthing like that ; ( AND ALSO THERE IS ANOTHER CHARACTERS MOVE IN THE ROOM BUT FIRST I TRIED TO TRY THE FUNCTION ON cKiz CHARACTER  ) PS : none of the characters in the code i give you is our main character , our character just stands on the bottom of the room while those functions working
;



function room_FirstLoad()
{
cKiz.Walk(1905, 538, eNoBlock);
cErkekFig.Walk(22, 565, eNoBlock);
cFi2.Walk(22, 565, eNoBlock);
}

function room_RepExec()
{
if (cKiz.x > 1000) {
 eShadow.Disable(cKiz); // about shadow module
 cKiz.ChangeView(6); // the view which has no image i mean empty transparant thing
 cKiz.StopMoving(); // For the code which i use after this
 cKiz.SetWalkSpeed(50,50); // I wrote this , because i want player to think when the character went to the right edge it went to the different room , the next room , but actually , it's just gonna be invisible and start from the left edge of the room again like another npc , and it needs to move very fast , if there is any teleport script i know , i would use it  :D .
 cKiz.Walk(113,494,eNoBlock); //  the invisible cKiz character walks to the left edge very fast while the player thinks it went to other room
 cKiz.FaceLocation(1000,1000); //  the invisible cKiz character turns her face to right of the room so when it's visible again the player assume that another player come from the left edge.
 cKiz.StopMoving();
 cKiz.ChangeView(10); // Her own view
cKiz.Walk(1905, 538, eNoBlock);
}

else if (cFi2.x < 18 ) {
cFi2.ChangeRoom(-1, 0, 0); }

else if (cErkekFig.x < 18) {
 cErkekFig.ChangeRoom(-1, 0, 0);
 
}
gGos.Visible = false;

}




But after i tried this the character went to right edge and the shadow was invisible and the character was doing nothing also the other characters stopped their function too.


Actually , the thing i want is the just the same thing with the Character Control Module ( http://www.adventuregamestudio.co.uk/yabb/index.php?topic=28821.0 ) but i could't make it work in AGS 3.2.1 beta i'm working with AGS 3.2.1 beta .


Is there anyone who can solve my script problem or who says " it 'll be very very better for you to use Character Control Script to move the NPC's in different rooms and i will show you how to use that script because i think when you import CharacterControl_085 it says you need the older versions of this script and i think you don't know which one you should download and import to AGS 3.2.1 beta and don't know how to use it in the rooms , don't worry i will tell you all , now let's start with ....... "


I'm open to every suggestion :D .
#10
as i said before , this is awesome you know , i'm looking forward to play it , and julia's model , but one of my friends told me that the one of the foot of Julia is bigger than the other a bit but i don't think this'll be a big problem in the game ,i  just  want to ask one more question , how many months you spent on 3DS max to do amazing works like this , i mean i tried it before , but i wasn't making organic modelling so i wonder how many months we need to give to model like this :D .
#11
Thank you both :) , i tried setting resolution from the program but it wasn't a succesful try :D .

I'll read that aspect ratio info , thank you both again :) .
#12
i have this problem since 2005 the first time i make a game in AGS(ps: i'm not 30 years old programmer just 15 years old teenager :D ) , but this is the first time i need to care about the resolution because i want this game to be the perfect in all ways.
#13
Finally , i really want to try the new audio system.
#14
Advanced Technical Forum / Resolution Problem
Sat 08/01/2011 19:14:50
Hi everyone. I'm making my game in 1024x768 resolution . But i make my background images from Google Sketchup and when i rendered it the resolution becomes 1916x878 . If i resize it with some programs to 1024x768 it becomes very narrow and doesn't look very good. Also character becomes bigger than some object when compared with original resolution.

If i import background in 1916x878 resolution , the room structure changes. I mean , we can see the left part of the room if we're in the left ,  when i go to right part of the room , right part occures slowly , i think you got what i mean. But if you play like this , we can't see the height of the background well for example ;

original ;





in game ;





Do any of you have any suggestions for making the game look better?
#15
you mean ; you want to press "enter" for twice or more in different events or functions ? if yes , i think it's hard to work it in the same room but you can press enter in different rooms for different functions with : if (cTre.Room == 24)
#16
Thank you very very much , it worked :) . Thanks again :).
#17
Hi everyone. I sent pm to him but i couldn't be sure about getting answer maybe he won't login to forum for a while and i wanted to ask you my problem in SSH's Shadow module. When i tried it with creating a new game it worked well. I just had room1 and 800x600 background image with Roger character.

But when i tried it another project which has room 1 ( just intro - animation script [ character
  • .animate bla bla ] ) and room2 which we should navigate our character on and which has 1024x768 resolution . But game closes and ags editor gives an error as soon as the game opens.

    Now i'm going to give you the lines and error messages ;

    In the line which is marked with yellow color by AGS to show where the mistake is , we have this code .

    bgds.DrawImage(this.lastx,  this.lasty, this.cache[width].Graphic, this.Transparency);

    And another line which ags gives an error on ;


    Shadow.rep_ex();

    And both of 'em has the same error message ;

    Error running function 'repeadetly_execute_always'; Error: Array index out of bounds (index : 550 ,bounds :  0..199)


    Edit : Everyone i undestood that the problem is in the room which has animations , it was writtin in the module . ash . But i think i need to disable the module in that room so it says use this function ;

    function Shadow.Disable(Character *who);

    but when i do like this ;

    function Shadow.Disable(Character *cLog); {
    }

    it gives an error says ;

    Variable ' Shadow ' is already imported , how can i fix this ?
#18
OMG , thanks a lot  , really thank you , i released the game and some people had problem , and they can solve this problem now , i 'm making a version of my game which has install which installs it to Program Files . Thank you a lot  again :).
#19
Possible , but i can play it on my pc , when i transfer it to other pc it must work becausethe destination will change ,there won't be any Haydutlar(space)4 file ,  i'm not transfering the whole game file , just compiled file. Also , i tried to make a new game and put all the files into it , it didn't work again.
#20
Here ;

C:\Users\Inan\Documents\Haydutlar 4\Compiled\Haydutlar4.exe

Can this destination make trouble ?
SMF spam blocked by CleanTalk