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

Topics - T-Pr

#1
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
#2
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
#3
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.
#4
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 )
#5
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 .
#6
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?
#7
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 ?
#8
Hi guys , i know this question is asked before but the solution is not work on my game. When I open my game , i have an error that says ;

Error: pack_fopen: unable to change datafile: not found c:lablablablahaydutlar4.exe

like here ;

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

the same problem. But that guy solved problem by Rebuilding All , but i tried  build exe and then Rebuild All , but always the same problem in other pc , is there any solution ?
#9
Hello everyone , i have a problem and i think it has a very simple solution , but i have never tried it before so i don't know.

Now , in my room , i want the player named cDol to walk from one direction to another direction consistently. Like animation in the background .

I have those ;

cDol.Walk(271, 551, eNoBlock); // he will walk here
cDol.Walk(722, 533, eNoBlock); // and then again here [first position ( player start coordinates )]

but i don't know where should i put it or should i change something.

Also i tried to put it into Repeatedly Execute but it didn't work.
#10
Hey guys,i was doing my game and i did my animations and i finished my game.But before these,i changed gui color,texts.Later i opened my game and i saw a error.I said,maybe it is because of gui . And i imported new gui from a new game.I did gui normal but the problem did not solve please help me. Maybe it's simple error,maybe i forget somewhere please help me ;



It's saying ''closing brace'' but i can't do anything.
#11
Hey guys,I have a problem.I'm using AGS 3.1.2.I have animations and menu at the beginning of the game.In my first room,I put a player character's view 2  .In view 2,there is empty sprite.I did this for make animation.1. 2. 3. 4. 5. 6. 7. 8. 9. rooms have an animation and different backgrounds(for example;computer screen) for explain game idea.But in 10.room player must play,but my character is invisible.I tried to make another room and I played in it,my character is invisible in other rooms,too.I tried to make another character,and I make the roger ''player character''.But it didn't solved.But at the beginning of game,I removed all sprites of Roger.And I put my character's sprites to view one.When I saw this problem,I loaded roger from my other game by making import character,then I tried to play with roger.I couldn't solve the problem,I deleted all characters and make a new one,the problem didn't solved.I looked all views but there is no problem.And there is no problem in rooms,too.What can I do? My character is invisible!!!
#12
Hello everyone.I'm new in this forum.My name is İnan Evin.I'm from Turkey and I need help.I use AGS 2.72 for 4 years.I passed to AGS 3.2.And I started to my new game.But I have a problem.I was doing my game in 2.72.Later I took it into 3.2 and there was no problem.Everything was ok.But I pressed the build exe button.When I opened the game from Compiled File there is a error :


Later I did not use any music in my game.My game worked,but I want to use a music,but I do not know what I can do.


Problem solved...
SMF spam blocked by CleanTalk