Viper Snake
Member
How do I get type none to behave like player/enemy types when it hits the side of a wall?
As type none, if this entity hits the side of a wall it instantly teleports to the top of the wall no matter where it hits.
Changing this entity to type enemy allows it to collide correctly with the wall and fall to the ground.
Code:
name torpor1
type none
remove 0
jumpheight 7.5
setlayer -1
speed 12
nolife 1
shadow 0
nodrop 2
nopain 1
candamage none
offscreenkill 59
animationscript data/scripts/script.c
palette data/chars/constanze/effect/torpor/torpor.png
subject_to_wall 1
subject_to_platform 1
subject_to_obstacle 0
subject_to_basemap 1
no_adjust_base 0
anim idle
landframe 1
loop 0
offset 16 16
delay 300
@cmd spawnsub "trail2" 0 0 0
frame data/chars/constanze/effect/torpor/torpor.png
delay 2
@cmd shooter2 "torpor2" 0 0 0 0
frame data/chars/marianne/blank.png
@cmd suicide
frame data/chars/marianne/blank.png

As type none, if this entity hits the side of a wall it instantly teleports to the top of the wall no matter where it hits.

Changing this entity to type enemy allows it to collide correctly with the wall and fall to the ground.