Weastøne Entertainment
Member
Hi there!,
I've been through Shawn's tutorial, in order to make the screen shake, and I have troubles with this part of the code:
"shake_value" is set to 15 when I press H and then it gets reduced to 0 after. The problem is that this code does nothing; I debugged by printing the xview to screen and nothing changed. You may ask me "have you checked views?" Yes, I do! In fact I use his previous code to move the camera around, but this, just makes no sense... Why doesn't it shake? If you know another way to shake, I would be glad if you let me know!
I've been through Shawn's tutorial, in order to make the screen shake, and I have troubles with this part of the code:
Code:
var random_range = random_range(-shake_value, shake_value);
view_xview[0] += random_range;
view_yview[0] += random_range;