Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I block passages and make Dink turn around and say something?

block Dink passages turn
0
Posted

How can I block passages and make Dink turn around and say something?

0

Place something to block the passage or the door or whatever it is, such as a table (pick something that’s just the right size). Use SHIFT-5 to set the script on this thing (I usually name mine BLOCKER or BLOCKER1 or something). Now, you need to CLIP the sprite away to nothing (sometimes making it invisible using the 2 option will cause it not to run the script correctly, so I just clip them). To clip, simply grab the table (or whatever), hold the X or Z key down, and start pressing the arrow keys to clip it away to nothing. Now that you’ve created the blocker sprite (and it’s not visible on the screen any longer) you need to write the script to control making Dink move and talk when it’s touched. Begin the BLOCKER.C script like this: void main(void) { sp_touch_damage(&current_sprite, -1); } This will cause the sprite’s touch script to be called if Dink runs into it. Now, simply add code for this touch function: void touch(void) { //Prevent the player from being able to control Dink fo

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123