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
if its not set to enemy, it would read direction 225 to player?
Sorry im not really good at understand coding, but i think that is what you mean
http://imgur.com/2i7CvkM
if dir is greater than 225
if dir is less than 226
how much of a difference between those to numbers?
your target window for hitting and not taking damage is
....ummm -1 pixel ;/
===
i would go something closer to greater than 200 and less than 250(play with your numbers here til you get the proper strike zone) for your first variable and instead of the second variable i would use "else"
that would give you more of a cone shape from the north/up direction for your allowable hit direction
anything greater than 270 is up and right until you get to 360...which is 0
240 to 300 would be a 30 degree window from the up direction
so it would go something like
if direction is greater than 240
and
if direction is less than 300
"rest of action for success"
else
"action for fail"
http://imgur.com/p7JQLlG
sorry for being a pest with this question
but dont worry about being a bother.. isnt that why we are here ;o) to help eachother out and bounce ideas off eachother.
i do know that drag and drop while we can do some pretty cool stuff with it, coding allows way more freedoms to get what we want
this might be of use.. found it last night
if you click on the "show information" button... it will give you the psudeocode for each event for your object.. sometimes reading it in more plain text helps to find some tactical errors
Collision Event with object obj_slime:
if direction is greater than 240
for other object: destroy the instance
set the vertical speed to 0
if direction is less than 300
for other object: destroy the instance
set the vertical speed to 0
else
jump relative to position (-10,-10)
====
what we have here would look something like this...
this might help ;o)
that causes the player to be destroyed. I think i need to do something with place_meeting , but that does work with direction. Ill try and see what i can come up with . thanks for help
MMM i did watch this video and tried it this way, but im sure when i did the enemy got destroyed from all areas. I will give it a try again. I may have messed up somewhere. thanks
/// enemy collision
if (place_meeting(x,y,obj_brock_standing))
{
if (obj_brock_standing.y < y-6)
{
with (obj_slime)
instance_destroy();
}
}
;o)