Animated background layer Sor 2x

pepodmc

Active member
Hello, im porting some Sorr stage sprites to Sor 2x to learn how openbor works.

Stage 4 "Sor 2" route:

bVBjhiQ.png


EjnTOo1.png



The little lights in the background are static at the moment, but i want the little lights to change colors constantly (like a smooth palette cycling or something like that)

I dont know how to do it, i thought that taking the sprite, changing the hue of the image 4 times to get 4 frames of the same sprite with different colors to  cycle them and make like a little animation would work (added it to the level.txt and all that) , but the game crash when loading the assets.



Can someone teach me how to do this? Because im lost noob :-\  ;D



Perhaps this is the answer, but dont know how to do it:

https://www.chronocrash.com/forum/index.php?topic=5153.0
 
pepodmc, you can use fglayer or spawn an entity type none and put its sprites in anim idle.
If you dont manage to do it, I can make some tests with your animated background.
 
Hi there. I think you got one of the worse games to learn from it - Before anyone gets me wrong, I am not criticizing Kratus, but rather praising him. The level of his work is absurd and can be very difficult to follow for beginners.

Them you gave an example from a DC script - another person known for having a high skill level (even I have some trouble understanding what he does sometimes, lol).

For what you need, I would simply use an animated entity (type panel). It would be way easier to control.
 
O Ilusionista said:
Hi there. I think you got one of the worse games to learn from it - Before anyone gets me wrong, I am not criticizing Kratus, but rather praising him. The level of his work is absurd and can be very difficult to follow for beginners.

Them you gave an example from a DC script - another person known for having a high skill level (even I have some trouble understanding what he does sometimes, lol).

For what you need, I would simply use an animated entity (type panel). It would be way easier to control.

I make it work.

The thing is that, now i need to learn how to modify the xratio of the entity (the little lights) , because the entity goes at the speed of the panel, but i need it to go to the speed of the background (castle sprite)
Its moving at the speed of the panel, or its not moving at all? XD
I have it as "type none" , what is the difference for an entity between "type none" and "type panel" ?




Im learning with Sor 2x because Sor its the best beat em up franchise for me (even made an spanish translation of Bare knuckle 3 in 2012)

https://www.romhacking.net/translations/2001/

i knew the existence of openbor since 2010, but i was lazy to learn anything. Sor 2x its the perfect excuse to learn at least some things  ;D

 
pepodmc said:
Its moving at the speed of the panel, or its not moving at all? XD
I have it as "type none" , what is the difference for an entity between "type none" and "type panel" ?

Try giving speed 5 to your panel and see how slow it scrolls.

I am not sure the main difference between none and panel types. Setting speed to the "type panel" controls its movement while setting speed to "type none" does nothing.
 
Bloodbane said:
pepodmc said:
Its moving at the speed of the panel, or its not moving at all? XD
I have it as "type none" , what is the difference for an entity between "type none" and "type panel" ?

Try giving speed 5 to your panel and see how slow it scrolls.

I am not sure the main difference between none and panel types. Setting speed to the "type panel" controls its movement while setting speed to "type none" does nothing.

Thanks!!

I used speedf at 0.900 and i got the same movement speed.
But a new problem appeared like in this Maxman post:

maxman said:
I'm sorry for not showing some indications on what I got for the entity. I have the panel entity and the bglayer set with the same xratio movement in good rhythm like before (back to getting it fixed), but what I'm always having trouble is that every time 2 characters walk together while scrolling, the panel entity shakes left and right in one pixel, looking like it's cut off and going back
 
Back
Top Bottom