Aleq's Recent Forum Activity

  • How do I compare sprites value equal to OR sprites value is 0? I'm not sure how does the & and | works in the condition.

    as i remember

    when creating a condition select your sprite-> compare instance variable

    Also to understand how to do loops within same kind of sprites look at "pin chain style" example on construct 2

    its in the examples folder where construct 2 is located (propably at program files -> construct 2)

  • sorry construct 2 isn't with me right now so i cannot try to make exact conditions or actions but i may help with an algorthm

    set compareValue = -1

    set counter = 0

    *********loop for each row of sprites ************

    pick sprite

    **compare if sprites value equal to compare value OR spires value is "0"**

    counter = counter +1

    **else**

    set compare value = picked sprites value

    set counter= 1

    ** end if **

    ********* end loop ************

    if counter >=4 add xxx to players score

    set counter = 0

    compare value is set to -1 so we gaurantee that first pick will always false

    if you going to destroy the objects after achieving a score make their isntance variable like toBeDestroyed=true if conditions are met. if not, pick all reset the variables and continue like:

    *********loop for each row of sprites ************

    pick sprite

    set sprites toBeDestroyed = true

    **compare if sprites value equal to compare value OR spires value is "0"**

    counter = counter +1

    **else**

    set compare value = picked sprites value

    set counter= 0

    pick all sprites, and make toBeDestroyed= false

    ** end if **

    ********* end loop ************

    if counter >=4 add xxx to players score

    set counter = 0

    pick all sprites if toBeDestroyed =true then destroy.

    i hope u understood what i ment. sorry for such stupid coding

  • Whan you make something scaleable, you cannot use exact numbers anymore.

    You should always use relative positions. Best way to do is keeping numbers in variables. like gameWidth, gameHeight. You have to re assign this variables everytime screen changes.

    and ur conditions will be like this, "when TouchStartX < gameWidth/2"

  • Give every fish an instance variable about their scores. Forex you have 3 kind of fish

    Gold Fish => variable =5

    Ordinary Fish=> variable =1

    Bad Fish=> variable = -1

    when someone catches a fish add their instance variable to players score adding a negative value will substract that value

    with this style you dont need to use conditions, less calculations and ur game has more performance.

  • I haven't tried exporting to android yet. I assume that apk file generated is a browser, running html 5 page as a game.

    If your game is also works slow on any kind of browser in your mobile device, after you export it as a html 5 website and tested by link, i think you cannot do too much for this. Altering graphics, animations and calculations may only help.

    Also if you didint used "effects", try disableing and enabling "Web GL" on your project properties while exporting to test if there is a faster way with or withouth it.

    while i said effects, sometimes making a sprite for an effect instead of using calculations gives alot of performance.

  • you need to add browser object first

    after that you are avaible to use browsers "Go to URL" action

  • You do not have permission to view this post

  • the sword spawing i have solved. maybe not the answer i wanted. how can i add image points in construct classic?

    i hope i get good enough at this, so i can write a helpfull tutorial one day, that actualy shows some pictures of the "coding"

    totally missunderstood you sorry.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you should do the beginners tutorials step by step. If you have done it, you would knew that there are "image point"s in C2 so u would solve it with adding extra image points for player sprite and spawn your sword object on thoose points intead of "0"

  • You do not have permission to view this post

  • im glad to help

    • Rockwell, cant found that plug-in either but thanks for the info. I will be looking after it.
    • R0J0hound, you are right it would work if i create a function that starts a session to set angle every tick of the game when player clicks, and when clicks again, reset it and start another one. I would do it like this if i were writing this in spagetti. What i am looking was shortening the time to develop games when i buy this product. C'mon it is a very basic animation for a game to turn an object. I thought i didnt knew how to do it with construct 2.

    Now i solved the issue by turret behaviour. (attached)

    When player clicks i create an invisible target for the turret. Turret makes the object slowly aim to the target. But target dissappears before turret fully aims. Like 30 degrees.

    Why i am so obsessed about not aiming fully but some degrees is, im trying to make user constantly click or tab the game. It gives harder control over object and force player to make movement strategies. In full version player tries to catch something within a time withouth hitting tings. Also clicking that much needs full consantration with a suspicious kind of addiction to the game (doesn't works for everyone see flappy bird).

    Thank you very much for your attention everyone

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