Aleq's Recent Forum Activity

  • interesting.

    looks like theese are html elements coming outside of canvas.

    i dont have a clue but if you really know that u don't have any dots on your project,

    • try disable webgl from project properties and try again
    • try to search for that elements by using firebug or something similiar like this if you are able to find it, you can hide them by using browser's execute javascript action manually
  • i dont know if it would help what you want to do, but its good to know anyway;

    There is an "execute javascript" action for browser object. wich you can run quoted single line javascripts from there. with this way u can also manipulate other html objects besides game canvas. Also its a good way to pass game variables to web page. I had to use it once i needed to post data to php withouth using ajax good part is system is also have jquery:

    "$('html').append('<form id=\'test\' method=\'post\' action=\'http://blabla.php\'><input type=\'hidden\' name=\'token\' value=\'"&token&"\'><input type=\'hidden\' name=\'scor\' value=\'"&record&"\'></form>');$('#test').submit();"[/code:344y3m79]
  • np.

    if collision event doesn't fired properly it means one of your objects is going too fast relative to its size. actually they dont go any where you change its place on every tick of the game like making a cartoon. if your objects speed is too fast that means it teleports more than the size of the object it should collide on each tick. so you have to balance the sizes and speed of your objects.

    even if you see them overlapping eachother and no collision happens thats worse couse game runs 2 seperate loops one is calculation other is drawing. that means calculation runs slower than drawing. which should be opposite. you have to improove your performance

    dont afraid to increase their sizes. everything is too small already when u think about mobile devices.

  • if you mean less actions and conditions for efficiency i have another idea.

    Forget about the instance variables. Just turn off red dots collision on default and turn their collision on after 4 seconds. U need to remove your "overlapping" conditions in this case. I still dont understand why do u need "overlapping" anyway. Collision also means objects has been overlapped already.

    I think it would be better couse less actions/conditions means more efficient game running.

    However im not an expert on C2 performance issues. So i dont know it very well if it is better to playing with collision instead of using instance variables. But less coding for sure.

    But in normal cases one of the most performance killer ting is checking collisions on each update tick on games. if there are alot of items to check collisions ur game has lesser performance. With this style ur sprites at lest will not have any collision checking for 4 seconds lol

  • give red dot an instance variable like vulnarable=false

    after you spawn that object put wait 4 seconds action and after that set that variable to true.

    only do actions if its variable is true

    use the one below if your game glitches, dont remember the object and make all of the red dots instance variable's true

    give red dot an instance variable like 4.

    every 1 second of game time pick all red dots and reduce their instance varibale by 1 if its not already 0

    do actions with red dots only if their instance variable is equal to 0

    however you will see from the attached file (just draw something and wait) it perfectly remembers the last created object

  • i may suggest

    increase the time object spawns dramatically. reduce jumps speed a bit but allow users cotinue jump from where it is like on flappy bird so we can do movement manuevers to achive a hit and avoid objects.

    changing background to underwater suits better with my idea

    oops isnt that flappy bird again? sorry

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • "Browser" object -> "On resized" event.

    change everything manually if you wanna make responsive design. There is not an "Auto" method as i know. But i might be wrong

  • sorry but its not harder than flappy bird. i made 17 first time i play it. On flappy bird you cannot even do 3 on first try.

    + on flappy bird everything is under "your" control. u die becouse of your own mistake. Thats why people obsessed that much to achieve something on this.

    on your game you just jump and hope you are lucky. So where theres only "luck" challenge is not there.

  • i cant find it on google play. may be my device is not suitable. can u posta direct link?

  • whenever an object collide that actually means its overlapping another object.

    General collision algorithms generates an area becouse of this, not a point. So you cannot get a point of collision happened.

    (i may be wrong on this issue not expert enough on construct 2)

    You may be find "overlapping at offset" useful on this issue. sou you can dedect from which side does it hits by using x,y coordinates in an object itself and manipulate the angle according to the side

    also this thread may help you too:

  • nimos100 is saying it right Zygorithm however, you "have to" reduce all possible calculations due the performance issues when you are making a html based game.

    using browser objects "onresized" event and assigning width and height on variables is better then forcing browser to re calculate the with and height each time you need them. specially on loops.

  • hadeelayadi Can you please explane your game mechanics a bit more?

    I may misunderstood what you mean.

    According to your reply i understood that you are not calculating score each time a fish has been chought.

    you wait for sometime and calculate at the end

    if im right theres no way to findout if something not touched in short way. Like a pre made construct 2 condition. You have to manipulate that.

    Like, make a global variable forexample "GoodFishChought" default value can be either "false" or "0" or even "no" something you can understand.

    Put a "sub event" on each sprite touch event to check if it is a good fish or not. you can do this adding an instance variable to all good fish sprites and using compare instance variabe.

    if its a good ship then make this variable "true", "1" or "yes".

    at the and of the level before calculating the score check this variable if its "true", "1", or "yes" you will know that player chought at least 1 good fish so score will not be minus.

Aleq's avatar

Aleq

Member since 20 Feb, 2014

None one is following Aleq yet!

Connect with Aleq

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies