I saw some coding examples using this so i tried it out and first it worked perfectly, but when I created 2 different enemies using this they both got destroyed and dropped the items.
[codebox]create event
arrdrop[0]=obj_apple
arrdrop[1]=obj_weedhead
destroy event
var rand;
rand = floor(random(2));
instance_create(x,y,arrdrop[rand])
[/codebox]
- Game Maker Community
- → Viewing Profile: Topics: Eistee21
Eistee21
Member Since 08 Feb 2009Offline Last Active Mar 30 2009 04:22 PM
Community Stats
- Group New Member
- Active Posts 64
- Profile Views 556
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
none
Topics I've Started
Dropping System Problem
17 February 2009 - 06:06 PM
Rpg Requests
14 February 2009 - 10:58 AM
Hey, I´m making a medieval Rpg (like everyone else xD) and I´m not that good at spriting.
I need monsters, Npc´s, tilesets, items etc. (it´s a side scroller)
For items:
Items in 32x32
Style: medieval bit cartoony
Npc:
height: 64
lenght: 32
An animation only if you want to do.
Monster/animal:
can be any size
Animations: walking, attacking (dying)
Credit list:
2 cr. per item
5 for an Npc
10 for a monster/enemy
3 for things like rocks, trees etc.
10 for backgrounds
Your credits:
Puffad: 8
Bronko: 14
zezimaip: 10
ekoz: 48
sam24: 2
wirsbobrsiw : 40
1-10 Spriting helper on the credits page
10-30 your name is on some signs
30-70 name a city/dungeon/monster/npc
70-100 name 2 city/dungeon/monster/npc
100-150 name 3 Npc/monsters and a big sign with your name
150 and more On top of credits page and 1 one the things before
Thank you.
I need monsters, Npc´s, tilesets, items etc. (it´s a side scroller)
For items:
Items in 32x32
Style: medieval bit cartoony
Npc:
height: 64
lenght: 32
An animation only if you want to do.
Monster/animal:
can be any size
Animations: walking, attacking (dying)
Credit list:
2 cr. per item
5 for an Npc
10 for a monster/enemy
3 for things like rocks, trees etc.
10 for backgrounds
Your credits:
Puffad: 8
Bronko: 14
zezimaip: 10
ekoz: 48
sam24: 2
wirsbobrsiw : 40
1-10 Spriting helper on the credits page
10-30 your name is on some signs
30-70 name a city/dungeon/monster/npc
70-100 name 2 city/dungeon/monster/npc
100-150 name 3 Npc/monsters and a big sign with your name
150 and more On top of credits page and 1 one the things before
Thank you.
Enemy Ai
12 February 2009 - 04:51 PM
I made an enmy that has an Ai that should create an arrow if the player gets near to it, but it keeps creating arrows all the time.
What can i do to make it create an arrow every 2 seconds?
i´ve got this step event:
[codebox]if distance_to_object(obj_playerb)<300{
instance_create(obj_orcarch.x,obj_orcarch.y,orcarr
ow)
}[/codebox]
What can i do to make it create an arrow every 2 seconds?
i´ve got this step event:
[codebox]if distance_to_object(obj_playerb)<300{
instance_create(obj_orcarch.x,obj_orcarch.y,orcarr
ow)
}[/codebox]
Simple Ai
10 February 2009 - 04:12 PM
I made a simple Ai, but when the player dies the enemys keep moving.
I tried this but it seems to be really false xD
[codebox]if instance_destroy=obj_playerb
vspeed=0[/codebox]
I tried this but it seems to be really false xD
[codebox]if instance_destroy=obj_playerb
vspeed=0[/codebox]
Arrow Problem
09 February 2009 - 01:52 PM
I´m making a platform rpg, and i want to create the arrow at players position but how do i do that?
I tried this but didn´t work (i think it´s totally wrong)
[codebox]instance_create (x,y,obj_arrow)
x=obj_player
y=obj_player[/codebox]
I tried this but didn´t work (i think it´s totally wrong)
[codebox]instance_create (x,y,obj_arrow)
x=obj_player
y=obj_player[/codebox]
- Game Maker Community
- → Viewing Profile: Topics: Eistee21
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content