How can I have an object you can move with buϯϯons but can't move from a certain object?

helpwithcode

#1

Title explains it all. I'm making an Undertale battle.


#2

A- anyone....?


#3

Do you mean so it won't go outside the hitbox? Use check ifs.

When the button's pressed, check if (object's x pos) > 200
| change x by 1
End

and change that based on the box's position, button, etc.


#4

Hmm :thinking: when you say you want the object not to move from another certain object, do you mean it can't go outside a certain range?

edit: hehe Disky mentioned it already


#5

I.... Don't know what the right X and Y positions. Want me to release a version for testing so you can experiment with it?


#6

I mean, the best thing to do is to just change around the numbers until it worked. That's what I did for my project. You can release a test project if you want, but it'd probably be better for you to learn yourself.


#7

Okay.

This version is for you forumers to mess with.

:arrow_forward: Play


#8


#9

Ooooooooooooooooooooh...
Undertale...
I could make the opponent, if you'd like!


#10

I don't want help except for with this and maybe the blue attacks


#11

I'll figure it out, I'll just do a test and see what happens

Btw I know what the blue attacks are, just stay put, and don't move


#12

That's not a link, I just made the text blue because blue attacks are always mentioned in blue


#13

That's aqua, it starts with "< 'a' > "
And I thought that wasn't a link bc it didn't work when I pressed it -_-


#14

One second.... Maybe @Papyrus will want to help with his own battle. That was random.....


#15

Oh wait I know what blue attacks are, I just may need help coding the blue attacks


#16

Btw the project isn't there ):


#17

Lemme repost the link....


#18

:arrow_forward: Play


#19

hmmm im not too sure, but if projects have images and the images are in moderation, does it mean the project link won't show up yet? :thinking:


#20

But does the link work?