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 - Let’s Get Cooking

#1
ANOMALY RESOLUTION is a split-screen retro arcade shoot 'em up for 1 or 2 players made with AGS!

Compete across 8 levels in single player Challenge Mode.

See how long you can last in single player Survival Mode.

Challenge a friend in head-to-head 2 Player Mode.


Link: ANOMALY RESOLUTION on itch



#2
Please can someone suggest best way to check if the string contains one of many words, and return the position?

I can use IndexOf to check if a user input string contains specific words, but it's quite cumbersome to set up multiple IndexOf and If's for each word I want to recognise.

I'm thinking if I could somehow have a numbered list of words, I could have a loop to check through until a match is found.  I don't think I can use the parser, as I want to also check for combinations of words in different categories eg. Subject - Verb - Noun

The script would search the input text to return the index of first word found from the Subject list, first from the verb, first from the noun.

Any suggestions gratefully recieved, thanks!

#3
Hi, I am trying to create a situation where an enemy (cTigerbad) touches any other character, that character will move to certain co-ordinates.

I thought I could add the below in the rep ex to check if the tiger is touching a character, assign the pointer "Charhit" to that character then make them move, but when the tiger does touch the character the game crashes due to null pointer on the last line.

Code: ags

 if (Character.GetAtScreenXY (cTigerbad.x, cTigerbad.y) != null){
 Character * Charhit =  Character.GetAtScreenXY (cTiger.x, cTiger.y);
 Charhit.Move (100, 180, eNoBlock, eAnywhere);}


I'm worried I may have completely misunderstood the use of the character pointer - any help would be appreciated!
#4
Hello

I am trying to find a method to allow keyboard control of an inventory window.

I currently have it so pressing Tab opens the inventory window and sets mouse cursor to eModeInteract.  In the repeatedly execute I have a small code to move the mouse cursor to a relative grid position on arrow press, and then the following code to click the button at that position when spacebar is pressed.

Code: AGS
if(IsKeyPressed (eKeySpace) == true){
  ProcessClick (mouse.x, mouse.y, eModeInteract);
}


This doesn't seem do anything.  Does anyone know if ProcessClick be used in this manner, or is there something else wrong?

Thank you!
SMF spam blocked by CleanTalk