Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Gashking

Pages: 1 2 3 4 5 ... 8
31
Ask a Question / The F&#*?
« on: September 04, 2013, 01:37:37 am »
Ok so i have my Enemy set up..

when created set health to 100 yadda yadda

When flame collides with Enemies Group
Decrease Health by Player Damage which is 10..
if Health < 0 Kill self

Flame Collides once, enemy dies...

Seems that having 'when created' does not set health at all.. But then if i use a always block it sets to 100 and won't change... am i missing something here? -_-'

32
Ask a Question / Re: Items
« on: September 03, 2013, 01:20:36 pm »
Ok ill have a look thanks mate!

33
Ask a Question / Items
« on: September 03, 2013, 03:55:47 am »
Hey guys quick question..

I'm creating a inventory and equipment system atm, the way im trying to do it is so that if a item is on screen, once pressed you 'hold the item details' and then if mouse is pressed inside any slot it sets the slot as used, kills the item and creates another inside the slot.. just having trouble working out how to keep the information of what item i pressed and placing it into the slot.. i figured id use lists and have the slot get item number in list and create actor but not sure...

any advice?

34
Ask a Question / Re: Anyone able to provide some insight?
« on: September 02, 2013, 02:14:03 pm »
Sweet thanks man but I made a workaround to it, instead of doing distance I just have a collision box on the select target box that projectiles collide with so only the selected target gets hit and also only one target can be selected at once atm implementing equipment slots :) projectiles all done movement done. thinking blabout putting a thread on announce your game and update it with progress but theres not much to show just yet haha.. Really appreciate youhelping me out mate!

35
Ask a Question / Re: Actor disappearing on mouse click
« on: September 02, 2013, 02:20:14 am »
ahk yeh i sorta figured that at first but did - camera x, y ..

thanks for confirming!

36
Ask a Question / Actor disappearing on mouse click
« on: September 02, 2013, 01:41:02 am »
for some reason whenever i try to use anything that involves if mouse is clicked or pressed on actor set actors x, y to mouse yadda yadda..

the actor just disappears.. is this because of the camera focusing on player or...? :/

37
Ask a Question / Re: Anyone able to provide some insight?
« on: September 01, 2013, 09:26:24 pm »
Hey bro sorry its been awhile, looks like i've finally got the projectiles to point and go towards enemy! :) took a bit of fiddling around tried to do it a different way but found that doing it like yours was much easier haha.. anyway next thing is to calculate the distance between player and enemy for the projectile and once it reaches the enemy it kills self and plays another actor.. i guess i could just make it collide but i wanna be able to have the projectile move through others until reaching enemy.. next thing on the list atm :) really appreciate your help man

38
Ask a Question / Re: Anyone able to provide some insight?
« on: August 30, 2013, 10:06:00 pm »
Ok i cant seem to get this to work.. i have 3 behaviors..

on player i have..
When 'selected group' enters 'range limit region'
Create 'Projectile' at X center and Y center of self at front.
Region with 2 squares all around player that moves with the player at all times..

On Enemy i have..
If Shift down and mouse pressed on self
Set selected to true
switch animation to selected, Set Select X and Select Y to the X/Y center of self..
otherwise if selected true set selected to false and switch animation to normal..

On Projectile i have..

When created Point self towards Select X and Select Y degrees,
push self gently towards Select X and Select Y at force
When self collides with Selected group.
Kill self..

But i can't even get the projectile to spawn? how do i test if the region is even moving with the player?

I've checked all collisions and they are suppose to collide and w/e
75 views and only Colburt was kind enough to help out, anyone else?

Edit ok so the region doesn't seem to be moving with the player.. if i put the region on top of the enemy its creating the projectiles correctly but they arent moving towards the selected target.. -_-
also thats only if i have the actor entire group set as selected..
I have 2 animations for enemy one if selected and other if not if selected the 'collision' group is selected which is suppose to be detected by the region but the region only detects if the actual actor group is selected not the actors collision box's group....? :/

39
Ask a Question / Re: Anyone able to provide some insight?
« on: August 30, 2013, 06:49:30 pm »
ahk so for 'player x, player y' id use the selected target x, y? so if target selected set x, y to the x, y of the selected target? i sorta have a idea but its still over my head ill give it a shot haha thanks for your help bro i really appreciate it..  heres a tiny example of what my game looks like.. this has next to nothing implemented lol just the borders of where the GUI will be chat box down bottom and the side will be inventory stats etc etc...  all it really has is collision with tiles and movement so nothing exciting to see haha but anywaay..

http://www.stencyl.com/game/play/21142

40
Ask a Question / Re: A very simple yet extremely frustrating question..
« on: August 30, 2013, 06:23:54 pm »
thanks for your post, yeh thats what i have been doing but after i do it, it continues to stay the old version if i make changes to it so i have to readd the actor every single time -_-

41
Ask a Question / Re: Anyone able to provide some insight?
« on: August 30, 2013, 03:59:56 am »
yeah sweet thanks bro, alright and another thing with the 'projectiles' when created what do you use to send it towards selected target?

42
Ask a Question / Re: Anyone able to provide some insight?
« on: August 30, 2013, 01:09:36 am »
only just got back on, might just give the switch animation to the enemy with box a go instead as it seems easier to implement haha.. but i really appreciate your replies man! im about to give the melee thing ago, was thinking have a max range number which would be 32 x however far i want it to go so that say enemy was 3 squares away from my player the behavior would be something like..

If Target Selected true & If 'enemy position' >= Max range

create projectile yadaydayayada..

Also i've never actually got past the point of the basics and haven't even tried doing stats on the player... how would i do that to stay as one attribute for the entire game even between scenes.. use game attributes for everything or...?

43
Ask a Question / Re: Anyone able to provide some insight?
« on: August 30, 2013, 12:21:58 am »
thanks man! the concept is off of a really old mmorpg called tibia.. intense game haha and yeah i thought of that too but eventually would have a ai pathfinding to attack the player and whatever so then id have to put it on every single walk animation but thats probably the only way i can figure it out atm so ill give it a try.. the games got barely anything atm haha but i can show you somewhat little bit of graphics if you like

44
Ask a Question / Anyone able to provide some insight?
« on: August 29, 2013, 10:25:21 pm »
Ok so what i'm trying to accomplish is.. you alt + mouse click a target and it 'selects it' ..

the idea i had at first was when enemy is clicked create a actor 'box' under the target that stays relative to enemies position, if clicked on again kills the 'box' actor and deselects the enemy. the dilemma i'm having is how would i do this?

one thing i thought was always have a box under enemies but hidden if enemy clicked on show/hide it.. but the problem would be how do i attach the 'box' to the enemy when both are created? i tried with a small collision box on both actors that only collides with one another and have it so box stay relative to 'last collided actor' but it doesn't work...  any other ideas?

Also the next step after that is..

the movement is 32x32 tile based and i want the melee attacks to work like this..

If you select enemy on screen.. they stay the target until unclicked.. if selected target moves in any of the 8 squares around the character.. The character attacks the target. basicly like enemy takes damage after every 3 seconds or so..

with ranged attack id like to be able to have if selected target in range of 4 squares around player take damage after every 3 seconds and repeats.. id have a created actor/spell/bullet etc etc at player and move towards enemy and kill self once it collides with it

obviously i know the basics and understand how i would write these out but unfortunately lack the experience to just create this from scratch without a massive hassle and would take me forever to do little work.. so i'm asking if anyone is kind enough to share their wisdom and help with ideas of how to bring these behavior ideas to life.. thanks for your patience reading this long post!

45
Ask a Question / Re: A very simple yet extremely frustrating question..
« on: August 29, 2013, 08:22:23 pm »
bump still having this problem..

Pages: 1 2 3 4 5 ... 8