Duke4.net Forums: Resizing Respawned Custom Sprites - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Resizing Respawned Custom Sprites  "How to resize your own custom actors."

User is offline   HELLMOUSE 

#1

Some of you may remember me starting a topic about resizing a mini boss, and Trooper Dan replied with this:

appendevent EVENT_SPAWN
ifactor BOSS2 
  ifspritepal 3 sizeat 64 64
endevent


You definitely need this because the default bad guys / actors all have these "hard coded" sizes even if you are modifying one to act like the Boss1 mini boss whether just standing there waiting for you or respawning.

You can manually resize your own custom non-bad guy actors, but what if you want to respawn them?

You need a modification of this code for any actors such as ammo and power-ups other wise this happens:
Attached Image: Can you see it.png
If you download this picture and look very hard, you can see two very tiny little sprites on the floor.
No he is not a bad guy. He is actually a good guy, but doesn't do anything - more of a backdrop.

If you have your own made up actors and want to respawn them, then you definitely need a modified example of the below code unless you can somehow find out how to code it like the makers of Duke 3D did. Either way you still need to code it.

appendevent EVENT_SPAWN
ifactor BOOTHER
  sizeat 32 32
endevent

appendevent EVENT_SPAWN
ifactor DEMOLARGE
  sizeat 32 32
endevent


Here is the result.
Attached Image: Fixed.png

The BOOTHER is on the right
and the DEMOLARGE is on the left

Thanks again Trooper Dan for the help. ;)
0

User is offline   HELLMOUSE 

#2

Just to clarify some picky details, the mini bosses do have defaults, but if you want to resize them to your liking, use the example. Manually doing this only works with your own added actors because there are no previously coded instructions for that actor. You can not resize the RESPAWN sprite to produce results, you must use this code as a way to do it.

This post has been edited by HELLMOUSE: 12 May 2020 - 03:32 PM

0

User is online   Danukem 

  • Duke Plus Developer

#3

You're welcome! But this didn't need to be a thread. ;)
1

User is offline   HELLMOUSE 

#4

I just wanted to show what happens. Just in case someone new to this problem is stumped. Reading through this forum, it seems like there is a wide range of skill sets. Sizing issues from respawning custom actors may not be as obvious to some.

The only thing about resizing that came up was my mini boss topic. I hope this isn't a redundant topic.
0

User is online   Danukem 

  • Duke Plus Developer

#5

It's not a big deal, but the problem with making a thread for how to solve a single niche issue is, it will probably be years before anyone else wonders about it, and when that happens they won't find the thread anyway. They will just ask in some other thread and it will be easier just to answer them again rather than try to find the old buried thread about it (assuming that anyone even remembers it exists).
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options