Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Characters disappear when too far in WS (alexandria map 103 main plaza) #325

Closed
snouz opened this issue Mar 15, 2024 · 1 comment · Fixed by #387
Closed

Characters disappear when too far in WS (alexandria map 103 main plaza) #325

snouz opened this issue Mar 15, 2024 · 1 comment · Fixed by #387

Comments

@snouz
Copy link
Collaborator

snouz commented Mar 15, 2024

image

@Tirlititi
Copy link
Collaborator

For the record, this optimisation process that served the PSX version in order to keep the number of rendered objects relatively low at any time is coded in the field's script. It's not something automatised for all the fields but a system that appears in a couple of specific fields. For instance, you can find code like that in that field:

Function Alexandrian_GirlB_Loop
    while ( 1 ) {
        SetObjectFlags( 5 ) // Show the 3D model
        if ( GetEntryPosX(250) > -600 ) { // If the player character is at the right of the screen
            SetObjectFlags( 14 ) // Hide the 3D model
        }
        RunAnimation( 973 ) // Rope_L_1
        SetAnimationInOut( VAR_GlobInt16_37 / 8, VAR_GlobInt16_37 / 8 )
        Wait( 1 )
    }
    Wait( 1 )
    loop

@snouz snouz added the Scripts label Apr 15, 2024
@snouz snouz linked a pull request Apr 22, 2024 that will close this issue
snouz added a commit to snouz/Memoria that referenced this issue Apr 22, 2024
fix by Sam

Co-Authored-By: SamsamTS <SamsamTS@users.noreply.github.com>
@snouz snouz closed this as completed in f2e0be5 Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants