gazf5
Member
So i have movement code using place_free;
if(keyboard_check(ord("D")) && place_free(x + collisionSpeed, y)) {
x += walkSpeed;
image\_speed = walkSpeed / 6;
sprite\_index = spr\_hero\_right
}
However in my step events i use place_meeting;
if(place_meeting(x,y,obj_hero)){
if(myTextbox == noone) {
myTextbox = instance\_create\_layer(223,192, "Text", obj\_textbox);
myTextbox.text = myText\[0\];
myTextbox.creator = self;
[myTextbox.name](https://myTextbox.name) = myName;
audio\_play\_sound(snd\_keypickup,1,0);
The issue i'm having is i pass through objects because if i make them solid, the place_meeting string stops working, but if the obj's are not marked solid the place_free string doesn't work.
Are they meant to cancel each other out?
if(keyboard_check(ord("D")) && place_free(x + collisionSpeed, y)) {
x += walkSpeed;
image\_speed = walkSpeed / 6;
sprite\_index = spr\_hero\_right
}
However in my step events i use place_meeting;
if(place_meeting(x,y,obj_hero)){
if(myTextbox == noone) {
myTextbox = instance\_create\_layer(223,192, "Text", obj\_textbox);
myTextbox.text = myText\[0\];
myTextbox.creator = self;
[myTextbox.name](https://myTextbox.name) = myName;
audio\_play\_sound(snd\_keypickup,1,0);
The issue i'm having is i pass through objects because if i make them solid, the place_meeting string stops working, but if the obj's are not marked solid the place_free string doesn't work.
Are they meant to cancel each other out?