A
Asis2013
Guest
So I'm moving my code from game maker 8 to studio, and the previous code i used allowed me to have the objects spawning at the top of the screen (fallers) stick with the object by the bottom which was catching it (catcher). The problem is that when it the fallers lands on the catcher, the fallers don't move with the catcher. in game maker 8 i used this code in the step event x = fallers.x + xxs; xxs was defined in a collision event with this code xxs = x - fallers.x; . the point of this was to return the relative position of the fallers. but now the fallers don't do anything when the catcher catches them. Can anyone tell me why the fallers position doesn't update in the step event like should?
Thanks!
Thanks!
Code:
//movment with self
if(Colieded_self == true){
x = obj_fallers.x + xxs;
}
//movment with catcher
if(HasColided == true){
x = obj_catcher.x + xx;
}
Last edited by a moderator: