LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



View previous topic View next topic Go down Message [Page 1 of 1]

ACTIVATED
ACTIVATED
#1 [solved]Xas Enemies Empty [solved]Xas Enemies
Loading

shogun3

avatar
ACTIVATED
ACTIVATED
ACTIVATED
profile
We all know how great XAS is, but when it comes to setting up enemies, how can we avoid making them predictable and dumb?

1)For instance, if I would like an enemy to attack me with a short range (physical) attack only when I face left or right, how can do that?
And if I want an enemy to shoot an arrow at me only when his x position is=to my x position on the screen?
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
#2 [solved]Xas Enemies Empty Re: [solved]Xas Enemies
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
Make the sensor self switch page just an "approach player" movement, and a trigger set to "event touch". After that make the event turn on a different self switch that isn't being used by the enemy, for say "B", and have it turn it on. This way the event will turn on another switch when the player touched it.

after that is set up, make the page that is turned on by the self switch you established. This page will have conditional branches that will tell the event weather or not to attack the player.

I'll throw together a demo and send it to you, i think it will make more sense on what im trying to say.

Demo
post below contains the download...
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
#3 [solved]Xas Enemies Empty Re: [solved]Xas Enemies
Loading

shogun3

avatar
ACTIVATED
ACTIVATED
ACTIVATED
profile
that would be great!
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
#4 [solved]Xas Enemies Empty Re: [solved]Xas Enemies
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
*updated ^

and hope that is what you meant, for the arrow thing, you can do the same thing, just make the enemy a trap enemy and the same for the side attack just different conditional branches on the page.
EVENTALIST
Show Signature
EVENTALIST
Administrator
Administrator
#5 [solved]Xas Enemies Empty Re: [solved]Xas Enemies
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
@wiggles - as always you are most helpful

@shogun - get familiar with enemy move routes, d/l the XAS pdf and review section 4.4


http://www.filefront.com/14713937/XAS-MADE-EASY-v0.1.rar
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch
Active Member
Active Member
#6 [solved]Xas Enemies Empty Re: [solved]Xas Enemies
Loading

Legault123

Legault123
Active Member
Active Member
Active Member
profile
@Mr. Wiggles: The demo link is no longer available, could you upload it again please?
Active Member
Show Signature
Active Member
EVENTALIST
EVENTALIST
#7 [solved]Xas Enemies Empty Re: [solved]Xas Enemies
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
damn... yea i just cleaned up my uploads because i thought it wasn't needed, sure no problem ill re upload for you.

Here you are... Download


also are you the same person as the original poster?
EVENTALIST
Show Signature
EVENTALIST
Active Member
Active Member
#8 [solved]Xas Enemies Empty Re: [solved]Xas Enemies
Loading

Legault123

Legault123
Active Member
Active Member
Active Member
profile
Nope, I just saw the topic and got interest on it. Thank you very much again Smile
Active Member
Show Signature
Active Member
EVENTALIST
EVENTALIST
#9 [solved]Xas Enemies Empty Re: [solved]Xas Enemies
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
ok, yea no problem.
EVENTALIST
Show Signature
EVENTALIST

Sponsored content

profile

View previous topic View next topic Back to top Message [Page 1 of 1]

 

Chatbox system disabled
Personal messaging disabled