Re: Ask a simple question, get a simple answer
Posted: Sat Nov 03, 2018 1:10 pm
This is my script of the buildings rising from the ground:
https://youtu.be/mTkSqOZgYro
Now I want this movement script converted to a script that moves stuff horizontally so I can let a ship float by
https://youtu.be/YvP8WzlJX08
But I have no idea how to, I tried changing posY into posX, doesn't work offcourse and the ship keeps floating upwards instead of horizontally. I'm out of ideas
Help!
Any kind of code to let me move objects horizontally will do as long it's not too complicated.
It's just for visual from a distance, no need to walk on it or savestate compatibility or any other interaction.
https://youtu.be/mTkSqOZgYro
Code: Select all
startHeight = 0
dir = 0
posY = -1
function risingbuilding()
local spinner = findEntity("mausoleum_stairs_down_3")
if posY < startHeight then
posY = posY + 0.002
spinner:setPosition(script_entity_78.x, script_entity_78.y, dir, posY, script_entity_78.level)
end
endhttps://youtu.be/YvP8WzlJX08
But I have no idea how to, I tried changing posY into posX, doesn't work offcourse and the ship keeps floating upwards instead of horizontally. I'm out of ideas
Code: Select all
startHeight = -1
dir = 0
posX = 0
function shipmove1()
local spinner = findEntity("sx_ship_rear_hull_2")
if posX > startHeight then
posX = posX + 0.002
spinner:setPosition(script_entity_131.x, script_entity_131.y, dir, posX, script_entity_131.level)
end
endIt's just for visual from a distance, no need to walk on it or savestate compatibility or any other interaction.