Hello! People may be asking why I have the same post as @tgrtmgmt . I have partnered with him because I do not know how to do this, however, I can not still figure this out. No one has responded to him in the past 48 hours, so I need to do a follow-up. I am a different person, just helping him. The code I used was exactly the same as @tgrtmgmt . Our progress bar is not saving and I need help!
import wixLocation from ‘wix-location’ ;
import {local} from ‘wix-storage’ ;
$w.onReady( function () {
});
export function button1_click_(event){
let progress = Number(local.getItem( ‘progress’ )) + 5 ;
$w( ‘#progressBar1’ ).value = progress;
local.setItem( ‘progress’ , $w( ‘#progressBar1’ ).value + ‘’ );
wixLocation.to( “/NextLevel” );
}
Progress bar adds 5 but then doesn’t save. Can someone help!