Thread: Scorpion Engine
View Single Post
Old 05 December 2021, 20:47   #1566
earok
Registered User
 
Join Date: Dec 2013
Location: Auckland
Posts: 3,539
Check in:

Fixed a couple of bugs re: sprites, not sure if that's going to fix your issue though Mixel? Do let me know if it's still a problem.

Major new feature for the day is bit testing comparison. That's a more advanced programming technique that may not be useful unless you really need that capability, but there's one use for it that may be useful for most games:


if Test bit player_lookdir on LookMask_left
; player is looking/jumping/falling left
else
; player is not looking/jumping/falling left. Could conceivably be looking straight up or straight down
endif


This is a way of testing all left directions (including upleft and downleft) at once as opposed to writing a series of if statements. It's identical to how Scorpion internally tests for direction.


Edit: Mixel, wasn't sure what you mean by random order? Like, play the animation randomly forward or backwards, or pick a random animation to play, or..?

Last edited by earok; 05 December 2021 at 21:00.
earok is offline  
 
Page generated in 0.04447 seconds with 11 queries