It looks like you're new here. If you want to get involved, click one of these buttons!
------------------------------ ------ GLOBAL FUNCTIONS ------ ------------------------------ function shakeScreen(container) local dy = (application:getLogicalHeight() - 320) / 2 container:setPosition(-10, dy - 10) GTween.new(container, 0.25, {x = 0, y = dy}, {delay = 0, ease = easing.outBounce}) end |
Comments
Likes: antix, Ninjadoodle
self.utility = UTILITY
Likes: Ninjadoodle, Apollo14
@antix - Thanks! It seems like this would be a good way to do it on a larger project.
I appreciate the help!
Likes: antix
Likes: antix
Likes: totebo
Stage01 = gideros.class(Sprite)
function Stage01:init()
The issue here is that I have many levels with different code, so I would have to do the setup for every level.
There are so many ways to do the same thing, I'm starting to get confused / feel like I'm doing things wrong lol.
I think personally I would go with a separate class for each sub game type or it will most likely soon become unmanageable.