Search found 37 matches

How do I spawn objects at certain points

I was wondering how you could spawn objects in a certain way: so i want objects to spawn randomly all over the layout except a circle that follows my player so i avoid them spawning right over the player. |_________| |...............| |...... O ....| |_________| (ignore the dots) so i tried "dr...
by Matei511
Sun Oct 08, 2017 10:02 am
 
Forum: How do I....?
Topic: How do I spawn objects at certain points
Replies: 1
Views: 43

Re: how do i pin instances ?

plinkie wrote:But the enemies into a family. Then have an event 'on family created, create HP bar'.

@brunopalermo thanks a lot guys! Works like a charm!
by Matei511
Sun Oct 08, 2017 7:11 am
 
Forum: How do I....?
Topic: how do i pin instances ?
Replies: 3
Views: 81

how do i pin instances ?

i am trying to pin a hp to every enemy. There are several instances of enemies, and several types, how do i pin one hp bar to every enemy on the layout, and how do i make them spawn together? (Note: i need all hp bars to be instances of one object, but enemies to be different objects, with several i...
by Matei511
Sat Oct 07, 2017 6:44 pm
 
Forum: How do I....?
Topic: how do i pin instances ?
Replies: 3
Views: 81

Re: How do I implement ads

RogerFoxGames wrote:Hi! I had the same problem but after a while I solved it. Here is the link of my topic
viewtopic.php?f=182&t=195531

says it can't load the plugin , what version of C2 are you using? can you give me the link to where you downloaded the plugin from please?
by Matei511
Sat Oct 07, 2017 8:22 am
 
Forum: How do I....?
Topic: How do I implement ads
Replies: 3
Views: 92

How do I implement ads

I am trying to implememt ads to my game but it doesn't work. I have followed tutorials on the forum but i get an error when trying to test it in the engine and a black screen trying to test it on mobile. Disabeling any ad related events makes the game work fine.
by Matei511
Fri Oct 06, 2017 4:42 pm
 
Forum: How do I....?
Topic: How do I implement ads
Replies: 3
Views: 92

What's the most performance efficient way to make a curve?

I want to make a curve using square blocks in a top down game an i was wondering, performance wise, what would be the most efficient way to do it. The goal is to spawn rooms and spawn a curved tunnel connecting them. (Both the room and tunnel premade). Also what would be the most efficient way to sp...
by Matei511
Wed Oct 04, 2017 6:51 pm
 
Forum: How do I...?
Topic: What's the most performance efficient way to make a curve?
Replies: 0
Views: 83

How do I implement admob using cocoon io?

i followed tutorials online , made an admob account, copy pasted the ad unit id into the cocoon banner adds properties for android. For displaying them i have 2 events: "On start of layout: load a banner add" and "on banner loaded:show banner add" . when i try to run the game i g...
by Matei511
Thu Sep 28, 2017 5:47 pm
 
Forum: How do I....?
Topic: How do I implement admob using cocoon io?
Replies: 1
Views: 82

Re: How do I check which instance of obj x is closest to obj

@brunopalermo @pIinkie @guizmus thanks you all ! Can't believe the solution was right under my nose all the time... :D
by Matei511
Thu Sep 28, 2017 3:15 pm
 
Forum: How do I....?
Topic: How do I check which instance of obj x is closest to obj y ?
Replies: 8
Views: 209

Re: How do I check which instance of obj x is closest to obj

The we need 2 consecutive actions, that you want to execute every time you need the player to switch target. It could be every 1 second, but maybe don't check this every tick, it could cost a lot if you have a high number of enemies. First action will check all enemies, and set a variable to rememb...
by Matei511
Wed Sep 27, 2017 6:52 pm
 
Forum: How do I....?
Topic: How do I check which instance of obj x is closest to obj y ?
Replies: 8
Views: 209

How do I check which instance of obj x is closest to obj y ?

so i have object x, the player, and 10 instances of object y , enemies. i want, on mouse pressed, for the player to auto aim to the closest enemy. Thanks in advance !
by Matei511
Wed Sep 27, 2017 6:17 pm
 
Forum: How do I....?
Topic: How do I check which instance of obj x is closest to obj y ?
Replies: 8
Views: 209
Next

Return to advanced search