Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
1) collision detection - crude
2) If "mouse pointer over an object", do not allow an additional object to be placed.. you can even do this multiple ways, but I would just add this as a secondary condition to the "Upon Pressing a Key" and NEGATE "mouse pointer over an object." The problem you could encounter with this is that if you are on the outside of an edge of an object, you can place a new one... and they will partially overlap. Might have to add some collision detection or overlapping another object, and tell it to then move Position x and y (or just x) by 1 pixel until it is not overlapping... recommend using fast loops if you go that route. Might be other ways to fix the partially overlap but now knowing what your doing exactly I cant think of other ways.
3) there is probably other ways, but I would either do 1 or 2 above depending on what you are looking for. 1 works great if you have physics object in, and just crudely want to move things around... 2 works great if you want more control of how your game works.
You could possibly "grid" your game and use flags
negate mouse over worked a treat, edge detection seems harder to figure out. so i cheated
""Might have to add some collision detection"" gave me an idea, physics engine + static physics , as game is a top down shooter , the effect looks pretty cool - nudges object next to it when placed and sits edge to edge , kinda please with results.
thank mate