soo, i have a script that save a lot of values to some variables
the script work fine but when i try making a function to reset all of them
the script start acting wired
for example:
i am saving the player positions in loc_rot[0]
when i start replying his movement he start teleport randomly
any idea what causing this? and any suggestions?
#why is this happening
1 messages · Page 1 of 1 (latest)
@wispy nymph how do u reset it?
setting it value to the default
loc_rot = [[],[]]
also tried loc_rot[0].length = 0
how do u make it jump?
it's like propelled based on head rotation instead of body rot
or the numbers were multiplied 2x
test it again about 100 from 0 0
you mean my corrds?
it is a lot
off-topic, but you vould make it to an object instead of 13 let variables
maybe when i rewrite it to use simulated player
same
These replay ideas are fire 🔥
thanks
fr
this is not a showcase
pls help 😂
me 2+ years ago using block launcher
https://cdn.discordapp.com/attachments/625657452167299072/827858959440412672/VID_20210403162445.mp4
this is cool for awhile ago
does this use simulated player
no
what is block launcher
an unofficial scripting/moding api for android existed before official scripting api came in to scene
Nice
ok
so the problem is in the saving part
either the game is lagging and giving the wrong player location or ... idk
yeah that what happening
player path before reset is in the inside
the other one after reset
i tried walking in a circle
any idea @sand trout ?
using this t test
const loc = player.location player.dimension.getBlock(loc).below().setType("stone")
Code when...
dm?
sent the wrong vid
Looks lile there's extra location that's doin sth
Sure
wow its cool
tnx
does /camera affect player's location overtime?
camera has nothing to do with player location
whats issue tho ?
after recording one run, the location saved becomes adjusted
even tho cache has been cleared
just an entity
it is lag issue
removing some features of the replay do fix it
so the issue is caused by saving too much data
how is w
walking or jumping then
just tp every tick