Announcement: Why not try our official idea generator for inspiration when making puzzles?


Caravel Forum : DROD Boards : Architecture : Subroutine for checking force arrows
New Topic New Poll Post Reply
Poster Message
Rabscuttle
Level: Smitemaster
Avatar
Rank Points: 2460
Registered: 09-10-2004
IP: Logged

File: Force Arrow Check.hold (1.5 KB)
Downloaded 21 times.
License: Public Domain
icon Subroutine for checking force arrows (+4)  
Here's a subroutine for checking whether a force arrow/orthosquare is crossable given a particular orientation.

To call it:
(First copy the code into the character script)
Set _MyScriptX,Y,W,H to the specific square you want to check
Set .inputO variable to the orientation that you want to check
012
3.5
678

Call the subroutine 'GoSub ArrowCheck'
The .outputIsBlocked variable will contain 1 if the arrow blocks movement, 0 otherwise.
Remember to reset the MyScript variables back to -9999 afterwards.

Example room attached. Orientation is taken from where Beethro is facing, top character is checking the arrow, bottom character is checking the orthosquare.


Click here to view the secret text



[Last edited by Rabscuttle at 02-28-2020 01:17 AM]
02-28-2020 at 01:13 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Architecture : Subroutine for checking force arrows
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.