Quantcast
Viewing all articles
Browse latest Browse all 1488

How to tell which enemys to create in new battle scene

Hey, I'm working on a turn based combat system. The idea is nothing new you walk along and touch an enemy's collider which triggers the battle arena (-> new scene). Now I am wondering how can I tell which enemy to instantiate inside the new scene based on the enemy I collided with. Right now I'm thinking about creating an specific "empty" gameobject (based on the enenmy I collided) that isn't destoryed on load and somehow check for it in the new battle scene and then decide which enemy should be created based on this "empty" gameobject. But I don't really know how I could do this and got the feeling that it is probably a stupid idea and that there is a much better way to go for it, since this must be some very common thing to do for role based combat rpgs. I didn't find anything and would be thankful for pointers/ideas/concepts on how to do this (if you want to post script c# would be most useful/understandable). Thanks a lot.

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>