Zexlo / psych-engine-port

An unnoficial psych engine port of the Sonic EXE mod
Apache License 2.0
5 stars 4 forks source link

Unable to scale animated luasprites using functions #12

Closed Zexlo closed 2 years ago

Zexlo commented 2 years ago

I can't make choas' stage if I can't scale down the front layer anim sprite

CarpetBook commented 2 years ago

Does this mean the character in the very front of the stage, like in this video? image

CarpetBook commented 2 years ago

Found that Porker was assigned the key 'anim' when Lua sprite was made, then 'anim' was not scaled in the scaleObject.

CarpetBook commented 2 years ago

I finally got the emeralds in Chaos to show up..... I don't know what I did..... but they're there now........ also, the new free camera script is enabled by default; use IJKL to move the camera around the stage. Hold Shift to move faster.

Zexlo commented 2 years ago

how do i use this camera? do i load the stage in freeplay? also thanks!

CarpetBook commented 2 years ago

In the "supersonic" branch the camera is enabled by default for every song. It's in the "scripts" folder in the mod, so it'll run on every song, every difficulty at the moment. It's just for debugging and checking stage object positions, since there's no easy way to see everything at once...

Zexlo commented 2 years ago

the stage editor/creator is planned LAST for psych engine so its a shame we'll never get to take advantage of it during the mods development

CarpetBook commented 2 years ago

Massively revamped free camera script; disabled by default for all songs in the mod. Press 1 to enable the free camera in a song. Press I, J, K, and L to move the camera. Hold Shift to move the camera faster. Press 1 again to disable the free camera and return the camera to the game. Press 2 to keep the camera in place while disabling camera controls.

In stage script: Reset some scroll factors for CWall, CFloor, and pebles so that the stage objects follow the environment correctly; now they no longer slide across the floor as the camera pans.

In Chaos song script: precached Porker's image on creation. Needs to be verified to work on other computers, but this seemed to reduce the lag spike to just a few frames of lag on my computer. Reopening issue until this fix is verified to work elsewhere. Added floating animation for Super Sonic.

In Fleetway_Super_Sonic.json: tried to set all animations to loop. Did not seem to fix issue where Sonic freezes on one frame in certain sing animations.