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

#181
well yes, there is a good reason,
but i dont want to explain that in detail cause i want to participate on the mags contest this month and dont want to talk to much about this intention.
but i will send you an pn, where you can see whats going on in detail right now.

i have a scrolling screen, and the game stucks when the sprite comes near a corner.
#182
in the rep_execute i have:

Code: ags

surface.Clear(); 

surface.DrawSurface(backup);

surface.DrawImage(....);


when i move the sprit with DrawÍmage, i clear the sprite with surface.Clear, then i have to draw the bg again,
and then i draw the sprite on the new position.
Or is there a better solution for this task?

i found out, that it doesnt matter if the background is painted every Gamecycle or not, the weak performance comes from
surface.DrawImage(....);, and i cant do it without this command.

Are this functions slower now, then they was before with the RawDraw Commands?
#183
big thx, the module works now again, in principle.

But the performance is much weaker then it was with 2.72.
the sprit i move around the screen, stucks every now and then,  :(
i didnt had this problem before with 2.72.

any suggestion how to speed up this thing a little bit.
#184
I have a module in the making, its nearly finished and works well with AGS 2.72.
Now i want to use it for a game with AGS 3.1 and got problems.

The structure of the module is:
Code: ags

function Init(int xxx)
{
    RawSaveScreen();                    
    RawDrawImage (15, 150, 152);
}


function a(....)
{
RawRestoreScreen();
}
function b(....)
{
RawRestoreScreen();
}

function repeatedly_execute() 
  {
       

     
     RawClearScreen(0);

     RawRestoreScreen();

     RawDrawImage (15, 150, 152);
}



works fine, now i replaced the old commands with the new ones and come in trouble

Code: ags

function Init(int xxx)
{

    DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
    DrawingSurface *backup = surface.CreateCopy();


       surface.DrawImage(X, Y, 455);
}


so  surface isnt available in the other functions, and i cant call it with

Code: ags

     surface.Clear();
     surface.DrawSurface(backup);

in other functions

when i try to generate the surface on top of the script outside the functions i get:

Quotedriving.asc(7): Error (line 7): cannot assign initial value to global pointer
#185
ok i guess i can deal with this, big thx.  :)

ps: can we extend the deadline  :P
#186
but on this screen, ->
there are also 1x1 pixels, i guess.   ???


#187
thx, that means i use 160x200 and when im finished i stretch the pic to 320x200, right?
#188
Quote from: Klaus on Tue 01/07/2008 08:23:23
Rules:

3.  You must adhere to the limitations of the style you are emulating.  For example, if you use AGI/C64 then everything must be drawn with a 2x1 pixel.  Some systems have tough color restrictions per sprite as well, so pick an older system that most appeals to you and remember that this competition isn't about the most beautiful sprites or backgrounds but about gameplay and fun!

ok, if i can make an entry in time, it would be a C64 style game.
but i dont understand the above rule exactly, the only thing i know is that the c64 uses 320x200 with 16 colors.
what you mean by drawn with a 2x1 pixel?
#189
Great Rules this month, unfortunatly i discovered them to late  >:(  :)
#190
ok, thx
is it intended for implementation in future versions of AGS?
could be very useful for modul developers.
#191
Downloadlink is broken,  :'(
please can you reupp the module and Manual?
#192
great work  :o,
i guess it come in handy in one of my next games.  :)
#193
THX,  :)
Please dont forget the other Modules and Plugins,
released in the last months and years from the other board.  :=
#194
I wonder why nobody moves the MODULEs postet here, in the MODULE Board as it was before?
So they will fall into oblivion very soon, and the motivation run low to release other ones for the public.  :-\
#195
Modules, Plugins & Tools / MODULE: Highscore
Mon 07/04/2008 22:52:11
HIGHSCORE MODULE VERSION v1.0 for AGS 2.72++

successfully tested with ags 2.72 and 3.01

Features:
############################################################################################
This module allows the creation of multiple highscore lists with multiple score entrys.
It uses the Encrypten Module from HeirOfNorton to save the data, and its based on the Highscore Sources from Macon.

Easy to use: (only 2 functions)
Code: ags

FUNC_ROC_HS_Submit_Score(12342);  // With this function you can submit a score to the first table.

FUNC_ROC_HS_Draw_Table(); // With this function you can display the first table highscore list


DOWNLOADS
AGS-Highscore Module -> AGS Highscore Module
AGS-Project (Ver. 2.72.920) with Module included -> AGS Project with Highscore Module


Big thx to:
Chris Jones - AGS,
MACON - Basic Highscore-Script
HeirOfNorton - EncryptedFile
naltimari & KhrisMUC - Forum help

I hope this module is useful and come in handy one day.
It this happens, I would be very pleased if the game creator sends me a message when thei game is finished
so i can play it. :-)
#196
big thanks for your help, should be no problem to get the module to work now.  :)

khris suggestion works, the only little glitch is that i have to save a few variables global,
but this is no great problem.

@naltimare:
i think also its better to have all code in the module, so i will check your suggestion today.

#197
thx, i will check your suggestions tomorrow.

problem is, there is no need for an mouse click event on this gui,
cause its a text input box, where the player have to type his name and finish with enter.
#198
I trying to make a module with user input - gui element.

but im struggling with the GUI activate function.
It seems that this function only works in the global script.
Is this true, and is there a possibility to make this function also callable in the module?
#199
agree nearly 100% with Rui's gripes,
but nevertheless big congrats, absolutly great game.  :)

#200
yes, the playercharacter is solid.

thanks for the snippet, this might come in handy later on.

edit: gamesources sent

SMF spam blocked by CleanTalk