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

#1
I promised myself I wouldn't write anymore but here I am, I present to you the problem, I'm trying to build a jigsaw puzzle, I can get the piece in the cursor but I can't drop it, where do you think I'm going wrong?? here is the code


script on puzzle piece (as a Gui button)
Code: ags
function pP1_OnClick(GUIControl *control, MouseButton button)
{
if (puzzle1_pezzo_selezionato == 0){
  mouse.ChangeModeGraphic((mouse.Mode),134);
  pP1.Visible= false;
  puzzle1_pezzo_selezionato= 1;
}
}



and the left click script below (just the puzzle part)

Code: ags

   if (puzzle1_pezzo_selezionato != 0 && gPuzzle1.Visible == true) {
    
    int mousex = mouse.x;
    int mousey = mouse.y;
    
    if (puzzle1_pezzo_selezionato == 1) {
        
        pP1.SetPosition(mousex, mousey);
        pP1.Visible = true;
        
       
        mouse.ChangeModeGraphic(eModePointer, 0);  // Assicurati che '0' sia il graphic ID del puntatore standard
        
        puzzle1_pezzo_selezionato = 0;
    }
}



Thank you for your help

Dam


edit:

puzzle1_pezzoselezionato means puzzle 1 selected piece
 wich i ha ve defined with starting value 0
#2
Please, as i wrote on title i need this check, because my script doesnot seem to respond to any iteraction on inventory object..
Im using a black project and a custom pop up inventory
. thank you

Dam
#3
Hello guys,

i'm trying to test my "player change" but i cannot see the error:


i want change player character everytime i click on another  npc is this feasible?
something like this:

Code: ags
 


function cKubik_AnyClick(Character *theCharacter, CursorMode mode)
{
cKubik.SetAsPlayer();
}



Thank you friends!
#4
Hi everyone, a lot of time has passed and I've picked up Ags again...
but let's get to the heart of the matter:

I'm setting up a first person game so I'm not using graphics for my characters, but a system of two inventories with one slot each, when for example I take an object with my left hand, I add the object to the inventory (and to the character ) on the left, and so on the right... the problem arises when I do a cEgo say, in fact the gui shows little black squares above... what could be the problem?
#5
Hello Y'all

I'm the eternal noob, but i've never used Ags to create something like this, it's my first attempt... So i Ask:

Wich starting template to use if i want a simple tumbleweed park like game with custom actions?

I saw that there's lot of code to customize to just set correctly the interface witm my custom action isn't it?

Do you suggst me Tumbleweed park template or another template? Thank you!

Here the gui i'd use:

https://ibb.co/mhPV3Wd

As you can see there are only few actions
#6
Any advice to how to test my project without building everytime?

i can install successfully the editor on playonlinux, everithing is ok but the test mode

using 3.5.1 p4 AGS editor version  on playonlinux on ubuntu 20.04

Thank you!
#7
hello, as title i'm trying install the editor with playon linux:
what i did since now:
installed play on linux
configured a machine with win 10 with wine 3.0,
i downloaded dot net2.0 dotnet 3.5, dotnet4.5
i downloaded gdiplus and vcruun2008

the editor seems to work but cannot test my game... i'm using the 3.5.0 p5 editor
do i have forgotten something? thank you for your help
#8
hi, i'm really new to Ags and i cannot figure why my items sprite are soooooo little (like 6x6 px).. ant idea why, how can i set a major size?
if i open another project they seems to be the right size.. do you think it's caused by some module and/or setting? let me know!
#9
Hello guys!

i need to draw my walkable areas above objects (this because they're moving platforms)

i'm posting again because i can't figure out how to see or set visible a walkable area behind an object.. do you think it can be done?
am i missing anything? thank you for your help!
#10
hi folks, i'm a user since last year but i've been putting ags in the drawer for a while .. but now here i am, again to ask for help from more experienced people than me.
I turn to the question, is there a way to skip empty loops in a walk cycle? If so, how? i need it for a isometric view game!!

thank you for your help
Blano
#11
Hello guys
i post this thread to ask you how to add a custom border to my textbox? i have all 8 PNGs for each side but when i launch the game it appears broken

yes i have set up sierra speech style with bg and ave a portrait of the speaking character!

i post two screens describing my request
Thx for you help!!    Blano

#12
Hello Everyone,
i'm a new entry in this fantastic World, and i'm learning to code in Ags by reading the documentation and following various tuts.

Does anybody knows why my new Gui can't show the transparent violet? it happen when i create a GUI in a blank project but not using a template (sorry for my very bad english)
SMF spam blocked by CleanTalk