GeorgeZaharia's Forum Posts

  • why do you create objects? why not use the hats body and pants objects and have multiple frames, and every 3 seconds or when u need it just change the frame....

    and then add a condition of each curent item and check for it if its already existing then reselect another 1... creating objects is a bit cpu intensive... changing frames and using the same object is faster and easier.

    youl need a local variable though... to save the curent frame of each item.

    now depends on how many hats and pants and items you have on screen... i see you using for each familly ... that means you have quite some objets at 1 time in screen...

    edited: here is the capx i was saying proving my knowledge for multiple items, i created instead 1 familly holding the entire sprites, and keeping the 2 variables the curent frame and picked frame.

    there are hats/belts/and feet

    every 3 seconds for each famillymember we change the pickedframe variable to random 0 , selfanimationframecount

    then we check the curentframe variable and picked frame if their not equal then we set curentframe to the pickedframe value and set animation to curentframe

    else we pick again a new frame.

    however my aproach is only applying to items that are not randomly generated, for that better to use the plugin above i guess... or create the obejcts hats/etc separated from their famillies... and then apply the code in my capx.

  • you need 3 localvariables or globalvariables, 3 numbers lets name them targetx and targety for position of mouse, and 1 boolean, that will toggle the movement, lets call it move

    and then we create the bellow pseudo code.

    on left click - set targetx to mouse.x
                  - set targety to mouse.y
                  - set move to 1
    
    if move =1   player set angle towards position targetx targety
    
                      - move forward 5 pixels
    
    /////////////////////////////////        now we add the condition to stop the movement        /////////////////////////////
    
    compare two variables expression from system and we add the distance formula distance(x1,y1,x2,y2)
    
    distance(player.x,player.y,targetx,target.y) =< 20  -  set move to 0
    
    and that is it.
    
    [/code:1gdfjq0f]
    
    and here is the capx [url=https://drive.google.com/open?id=0B0lqVR-ryWBQbXJldGFSLTJYVjg]move to point[/url]
    
    you may want to adjust things inside for optimisation like trigger once on distance =< 20 and change the global variables to localvariables on the player so you save events
  • curent layout limitation is 100,000 pixels, however it can be upped to 1000,000 pixels, if you know how to regenerate the space for canvas you dont need more then 5000 px /px and fake the infinity of space.

    here is a post that holds a endless space engine capx

  • check this tutorial should cover all aspects from making a facebook game to publishing

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you can't switch between landscape and portrait via events system

    however you can resize the layout and make it for portrait and landscape when you want.

    but i think youl need to lock the orientation to any, not sure how well all this will come in place... probably not as good as is expected, maybe a custom plugin will help with this. i know this was requested long time ago, maybe such plugin already exists. cordova plugin or something similar that let you access the orientation locking attribute.

    but im not sure.

    Hmm, wonder why no one answered.....

    probably cause they are in recovery from the most epic drinking? or still celebrating?

  • as newt said, you'd need to limit the max players to around 5 -10 in a room for the ping server i think that is only applying, if your doing a private server via ajax ... then you do what you want in the limitations of the server you own i guess.

  • Here's the relevant original discussion on the third oldest page of "Construct 2 General":

    The CC feature was called attributes and the decision was to replace them with behaviors instead. So a behavior could probably be done to implement a destroy on startup.

    aw that...that explains it much better, thanks R0j0Hound ! i think now also, that wold be the best approach, since the poll had a good argument on why wold be best to get the attributes as behaviors.

    im guessing this topic should move into requests section for behaviors then?

    zenox98 , Kyatric can this post/topic be moved in extending Construct2 request section please? when you find time... its not a hurry!

    Early Adopter License for Scirra Construct 2: $32

    That's such a huge amount! Imagine how many pizzas you could afford with that, how many games you could buy, hell, you could get yourself a pair of shoes with that.

    Clearly $32 is FAR too much for some software that you can create production-quality HTML5 games with. How dare Scirra put a price tag on it!

    I don't want to live on this world anymore. When is the next Mars-bound ship?

    do i sense some irony? ....

    Vicu yes the license for C2 might be high... of sorts in that situation... im guessing your from Romania as i am or some development country, what i did at first to get my license, was i took a small project for about 400 usd asked 200 upfront(there i been lucky), then i paid for the C2 license, and made my second paid project! 200 usd if you get unlimited access to C2 is not much if you think on how much more you can make with the tool that is a investment.

    as a example, before i tried C2 i bought Stencyl, on some way Stencyl is a good tool, however i spent around 300 usd to get a 1 year license that is the way they give it to you... now you'd say.. well in 1 year youl make some cash... wrong... projects take time... if your lucky to get into the low quality market and have clients in bulk then yea you'd probably manage to survive a little but its not a feasible investment, since you got to pay each year same amount... no discounts... if the end of year comes... well hell no 1 day extension unless you pay. however most of software companies are willing to give you a longer access to a partially product if you pay half lets say, then after payment in full u could get the license... but for that you have to contact their official support. that is the way Stencyl works, i dont know how C2 business work on that side.

    also, while other software are free yes... they will either take % of your income for life this is the unreal engine 4 way.... which is ok, or take nothing unless you get to a income of around 100k at which point theyl ask 10k or full license payment, that is unity case.

    however the C2 simplicity is what we all are looking for and not the power of development compared to unity or other bigger software... that will probably come later... oh and since irony is a trend here..... try buildbox for 30 days then pay 100$ each month ...or you can get the game maker edition... is cheap yes... 50 bucks or so... but exporters are 200 bucks each... 450 for android only... total cost on GameMaker around 800 usd ...

    for full license access... 1 time payment 150 usd for C2 personal edition i think is more then fair. and i think scirra could do better on asking more cash of add a different licensing, and "milk the cow" ... as others competitors are doing, however they are not greedy. their just in this for survival of company, for creating something for people and yes making cash to sustain themselves personally as well . everyone does it no matter what the initial purpose is. and wold be hypocritical to think either wise, cause everyone of us will do the same if we where in their shoes. anyway... im way further from the main chat... 100-200 usd 1 time payment, hell 1500 usd 1 time payment is nothing compared to the long run stream income you can develop with the software your investing in.

    and coming back to C2... with 100 events... you can make great games... small games and limited to html5 browser yes... but great ones.. which can open you doors to create other bigger ones, or develop the same one at a higher scale.

    good day.

  • yes you need to have 2 layouts, 1 for the map or the topdownview like you say, and 1 for the sidescrooling area /dungeon,

    you can also do it in the same layout, on different layers, however it will be to complicated and probably youl get confused at some point in development when stuff will be to crowded, but the same layout suggestion ,i dont think is recommended since all the objects wold be present there and the resources utilisation wold explode.

  • I need to create a mobile application with the following features:

    - Login through the social accounts (Facebook/Linkedin/Twitter/etc) and email

    - Capture photos and apply effects

    - Create tags and captions to these photos

    - Identify the user localisation

    - Publish the photo files in blogs and social websites

    - Chat (optional )

    Is it possible to do this application using C2? If so, is it worth it? And if not, what programs, like C2, you suggest?

      - Login through the social accounts (Facebook/Linkedin/Twitter/etc) and email - totally doable
      • Capture photos and apply effects - doable
      • Create tags and captions to these photos - can be done but you need to know how to use ajax, and server side saving.
      • Identify the user localisation - probably will cause your app to be banned... but is doable, by either using a custom plugin, or use the browser object and get location via javascript.(but you can also get the location with the cordova plugins for mobiles, purpose of detecting country etc... but exact position town area that is sounding like illegal privacy acts and i dont want to encourage you to do it, the googleplay store is filled with this type of games, that place mario games and asks for location and phone number access... which they dont need really... also you can get the area /location from the users facebook profile, etc. if that is mandatory.)
      • Publish the photo files in blogs and social websites - doable
      • Chat (optional ) - doable but you need to know multiplayer signal server or how to make a serverside hosted app that creates rooms, for each users and connects them based on their friends list etc.

    there is no program like C2 that can do that! you are probably best to use a third partie service like the people above said, appmaker etc.

    or just get the whatsapp source code and modify it for your purpose, there are plenty of clones on github and on internet for that.

  • You do not have permission to view this post

  • pseudo-code for assigning the hiscore to score

    score>hiscore - set hiscore to score
    
    /////////////on game ended//////////
    
    gameover = true - create text to position x, y
                                  - set text to "score: "&score
                                  - create text to position x, y+200
                                  - set text to "hiscore: "&hiscore
    [/code:2szzhezg]
    
    x and y is the position you want it to show, you can pin or spawn to a score object then move that or depends on how you want them to animate or react.
  • uid's are the order of objects or the number of object that is created, for example, you got 100 different objects created then you destroy them , the next object will have the uid 101 and not 1 ...

    for the object order to recycle you need to use IID which is the order spawned for each object of same type...

    while uid is the order of any object, all objects created no matter the type of them.

    if that doesnt cut it, you can make a localvariable on tile objects, and for each tile seed assign the count based on a loop.

    ex : for each tile slot add to variableid 1+loopindex if you want to start the counting from 1 and not from 0.

  • tone.js mic input analyser by rexrainbow might help you with this!

    after you figured that out, its a matter of using the analyser data, to change the 2d sprite frame animation. and then the little animated character wold give the impression it talks.

  • > "Destroy on Startup" - is a good feature.

    >

    - I agreed with you from the start, the only reason why I had so many evolution steps - the needed feature is absent.

    So, yeah, both hands up.

    I know Yura, i wasn't arguing with you was trying to make a statement for scirra team to take it in consideration more, i expressed myself weird i guess!

    TheRealDannyyy yeap, exactly what i was saying is something that wold make C2 feel more natural or as you said it make it more "comfortable"!

    Happy New Year Guys!