wesley's Profile
I am working on a re-imagined version of Friends Beyond 2. Release Date 2009 (finally)
I've done no testing to confirm this, but I believe there is an error in the example code.
I think the problem with that code is that it is always starting with sprite 0. The first loop will get the first brain 9, the second loop will ignore the first brain 9 and grab the second, but if there are more than 2 brain 9 enemies on screen, it will just keep looping and grabbing the second brain 9 sprite.
What I did in a similar script was before the goto loop; line, store the current sprite in a &temp (global) variable although it could be a local as well.
Here is my code to freeze all sprites on the screen. I might be able to remove some lines but I just wanted to get it working and move on for now.
&temp, &temp2 are global.
//Start Code snippet
&temp = get_sprite_with_this_brain(9, 0);
freeze(&temp);
freezeem:
&temp2 = get_next_sprite_with_this_brain(9, &temp, &temp);
freeze(&temp2);
if (&temp2 == 0)
goto b10;
&temp = &temp2;
goto freezeem;
I think the problem with that code is that it is always starting with sprite 0. The first loop will get the first brain 9, the second loop will ignore the first brain 9 and grab the second, but if there are more than 2 brain 9 enemies on screen, it will just keep looping and grabbing the second brain 9 sprite.
What I did in a similar script was before the goto loop; line, store the current sprite in a &temp (global) variable although it could be a local as well.
Here is my code to freeze all sprites on the screen. I might be able to remove some lines but I just wanted to get it working and move on for now.
&temp, &temp2 are global.
//Start Code snippet
&temp = get_sprite_with_this_brain(9, 0);
freeze(&temp);
freezeem:
&temp2 = get_next_sprite_with_this_brain(9, &temp, &temp);
freeze(&temp2);
if (&temp2 == 0)
goto b10;
&temp = &temp2;
goto freezeem;
wesley has released 8 files
| Title | Category | Avg | Updated |
|---|---|---|---|
| Friends Beyond 3: Legend of Tenjin | D-Mod, Epic | 9.1 | May 2nd, 2021 |
| Friends Beyond 2: Branches of Destiny | D-Mod, Quest | 7.1 | March 27th, 2021 |
| Infinidink | D-Mod, Romp | 9.0 | May 19th, 2009 |
| If Ducks Ruled the World | D-Mod, Romp | 8.5 | September 26th, 2006 |
| Friends Beyond 1 | D-Mod, Romp | 6.2 | February 26th, 2006 |
| Hard Tiles Labeled | Development | 2.6 | March 11th, 2001 |
| Beginning of Sorrows | D-Mod, Miscellaneous, Demo | 5.7 | November 21st, 2000 |
| Timeflow | Development | 5.0 | October 29th, 2000 |
wesley has written 11 reviews
| Title | File | Type | Score | Date |
|---|---|---|---|---|
| Lets Start Off with a Complaint | Belgotha Graphics | Normal | 9.7 | October 5th, 2006 |
| The Green Knight is a Wonderful Addition To the List of Available Graphics in the Dink Library | Green Axe Knight | Normal | 9.0 | October 3rd, 2006 |
| You Start Off on a Boat That Comes Under Attack | Basilisk Smile (The) | Normal | 8.0 | September 29th, 2006 |
| We Begin with a Very Stylish Opening | Prelude | Normal | 7.2 | September 29th, 2006 |
| A Simple Dmod with Not a Whole Lot To Do | Return to Rathor | Normal | 6.2 | September 29th, 2006 |
| In All Honesty | Fall of Tahmar (The) | Normal | 9.2 | September 29th, 2006 |
| Alas | Beginning of Sorrows | Featured | 5.0 | March 6th, 2006 |
| After My 4 (And a Half) Year Absence | Friends Beyond 1 | Normal | 7.5 | January 19th, 2006 |
| This is a Technical Guide on How To Create And Add an Enemy To Your Dmod | Creating Enemy Sprites | Normal | 8.9 | January 17th, 2006 |
| Very Nice File | DinkC Reference (Windows Help File) | Normal | 9.5 | January 17th, 2006 |
| I Wrote This File Basically For Myself | Hard Tiles Labeled | Normal | 3.0 | January 15th, 2006 |

9.1
7.1
6.2
2.6
3.0




