- Joined
- Dec 4, 2015
- Messages
- 5
- Reaction score
- 0
- First Language
- Italian
- Primarily Uses
Hey there! I'm using Galv's Invader script and I want change the y position of the ship. But, if I change it, collisions don't work anymore. It's probably a simple problem... but I know Ruby for only 2 weeks ^^" so, I probably missed something simple. Could you help me please? Where could be the problem?
The script is it: https://galvs-scripts.com/galvs-invader-mini-game/
I edit this method:
The script is it: https://galvs-scripts.com/galvs-invader-mini-game/
I edit this method:
Code:
def setup_player_image
@cell = 1
self.bitmap = Cache.space("player")
@cw = bitmap.width / 3
self.src_rect.set(@cell * @cw, 0, @cw, height)
self.ox = @cw / 2
self.oy = height
self.x = Graphics.width / 2
self.y = Graphics.height - height / 4 #I changed it with "(Graphics.height - 100) - height / 4"
end

