Problem with the y position of the ship [Galv's Invader Script]

Status
Not open for further replies.

Nintendomi

Villager
Member
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:


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
 

Nintendomi

Villager
Member
Joined
Dec 4, 2015
Messages
5
Reaction score
0
First Language
Italian
Primarily Uses
I have solved the problem. You can close (or delete) this topic.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,381
Reaction score
8,537
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,545
Members
137,834
Latest member
EverNoir
Top