Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Enemies moving outside of screen - how to stop them on (culled) tiles?
Started by d.mach Dec 29 2015 08:18 AM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 889 posts
  • Corona SDK

I now have included some test enemies in my TILED map, but when moving them around and they move outside the screen they can't collide with tiles anymore because the tiles are getting culled.

 

What is the best approach to this kind of "problem"?

 

I want to make my enemies move outside of the screen, so they have some kind of "own life" moving around and the player can wait until they re-enter the screen from outside again.

How can I do this?



[TOPIC: post.html]
#2

Painconfess

[GLOBAL: userInfoPane.html]
Painconfess
  • Enthusiast

  • 49 posts
  • Corona SDK

[TOPIC: post.html]
#3

Caleb P

[GLOBAL: userInfoPane.html]
Caleb P
  • Corona Geek

  • 1,424 posts
  • Corona SDK

@d.mach:

Aye, what @Painconfess posted is the accepted way to deal with this. I'll PM you later with an alternative, though.

 

- Caleb




[topic_controls]
[/topic_controls]