Page 1 of 1

[SOLVED] How to make the screen shake with imagebutton?

Posted: Wed Sep 15, 2021 1:08 pm
by GeeSeki
Hi,

I'm wondering if there was a way to use the hpunch screen shake or any similar screen shake at a click of an imagebutton that doesn't involve jumping to a label.

Thanks.

Re: How to make the screen shake with imagebutton?

Posted: Wed Sep 15, 2021 4:33 pm
by Daisetsu
I'm not in a position to test right now, but something lile this should work.

Code: Select all

imagebutton auto myimage action [NullAction(), With(hpunch)]
The NullAction() might not even be necessary.

Re: [SOLVED] How to make the screen shake with imagebutton?

Posted: Thu Sep 16, 2021 4:09 am
by GeeSeki
Yeah! It works, NullAction() isn't needed.