1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Update lerp positions during VVVVVV-Man transforms

This updates the interpolation positions of the player when transforming
into and out of VVVVVV-Man.

Otherwise, it can be seen that the player "zips" quickly during these
transformations if the Secret Lab entrance cutscene is played with
screen effects off.
This commit is contained in:
Misa 2023-04-05 19:51:58 -07:00
parent 5fbdf2b663
commit 73aee381ad

View file

@ -786,6 +786,8 @@ void scriptclass::run(void)
{ {
obj.entities[i].xp = 30; obj.entities[i].xp = 30;
obj.entities[i].yp = 46; obj.entities[i].yp = 46;
obj.entities[i].lerpoldxp = obj.entities[i].xp;
obj.entities[i].lerpoldyp = obj.entities[i].yp;
obj.entities[i].size = 13; obj.entities[i].size = 13;
obj.entities[i].colour = 23; obj.entities[i].colour = 23;
obj.entities[i].cx = 36;// 6; obj.entities[i].cx = 36;// 6;
@ -800,6 +802,7 @@ void scriptclass::run(void)
if (INBOUNDS_VEC(i, obj.entities)) if (INBOUNDS_VEC(i, obj.entities))
{ {
obj.entities[i].xp = 100; obj.entities[i].xp = 100;
obj.entities[i].lerpoldxp = obj.entities[i].xp;
obj.entities[i].size = 0; obj.entities[i].size = 0;
obj.entities[i].colour = 0; obj.entities[i].colour = 0;
obj.entities[i].cx = 6; obj.entities[i].cx = 6;