lennaert's Forum Posts

  • Just a thought:

    Cant you calculate the distance from what the wheel should move ?

    (pi * diameter)

    based upon that, you have the actual distance from movement without friction.

    You could fake your own friction, by simply having it move less then it should :)

  • here is a potential option

    Compare 2 values

    distance(user1.X,user1.Y,user2.X,user2.Y)

    smaller then

    100

    Add that compare to the event where you can click user2.

    It will only be clickable when player 1 is closer then 100 pixels to player 2.

    Might not be what your looking for, but its a start :D

  • I can imagine something like

    Get a circle on the layout, with its origin point in the center. (add more circles for the 1* value, double, triple, etc)

    Put a thin black sprite on the layout with its origin at the bottom and height half of that of the circle width.

    On layout start, set thin sprite to image point 0 of the circle.

    x=0

    while x < 20

    add 1 to x

    circle spawn thin sprite with angle (360 / 20) * x

    this wil get you the circle with the parts.

    should get you on your way I supose :)

  • So you want the exported application, to be able to catch paramters from the URL which was used to open the web application ??

    I dont think there is anything native for that in Construct 2, might be a good addition though. Perhaps through one of the plugins where you can execute javascript.

    I believe in javascript you would need to access the location.search, should give you all the parameter keys and values from the URL in a long string.

  • first post updated

  • EDIT:

    I just realised you asked for an option to place info in another text box ...

    Within construct you ca easily stuff something in a global variable and use it later somewher else ...

    As to data settting and retrieval elsewhere, outside of your game ..

    I use php scripting for that

    you need:web server,php   and/or mysql database

    Ajax post url with parameters (ie: username, pass, safety code, page request, etc)

    That url is your PHP page which needs to use the variables from the $_POST['username'] which its receiving fromyour construct 2 application.   

    For a user system this should be checked in php versus the mysql table.

    The php page should should echo some sort of result, I use the tokenat for that, ie:

    <?php

    ....process constructs 2 ajax call and give results....

    echo "success|you have logged in";

    ?>

    in Construct fetch the php echo from the ajax call with AJAX.LastData.

    I then do: if tokenat(AJAX.LastData, 0, "|")   (check string before pipe sign) check if its "success"

    If the user entered wrong info, you could have php echo "failed|incorrect pass";

    and have it display the second bit after the pipe to relay info what was wrong :) (wrong pass)

    Hope that makes it a bit more clear.

  • Would be good to have some sort of bounce effect on the walls, perhaps even something like a moment of disorientation :)

    Upgrades are always good, here is a suggestion for a few: faster turning, ammo amount

    Also, got a suggestion for you making the level of multiple players more fun to experience results of their play:

    When there are 2 left, make a special moment:

    IE: second person died, then:

    the screen goes just a little bit darker, apart for a spot in the middle, with on each side on of the players, perhaps slightly zoom in, add an exciting tune like something is about to happen: and then have the two fight it out ..   Sudden death moment.

    It perhaps doesnt mean much, but that moment of special battle could be where the players are aiming for to end up :D

  • phlix, haha, yeah I think you already had the same idea :), liking it

    As to spawning and where, perhaps have that related to game type.

    ie normal mode: players spawn in their respective corner, crazy mode randomized :)

  • nice one :D and your welcome

    Might I add a suggestion,stuff each control in a corner ;)   max space usage, more comfortable playing.

    You could also ponder placing it on the center of each side, but it would give an unequal devide.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • first post updated

  • This is an attempt to create a virtual enviroment, resembling 3d.

    working web version

    Most of the images are place holders and I have a request running over in the help section , where I am looking for images functioning as more advanced placeholders.

  • > instead of sepperate keys, use 1 touch object with vars, spawn that, give it variables like: name and action.

    >

    > ie

    > name: player 1

    > action: moveleft

    >

    > on layout start spawn all objects on desired locations

    >

    > Make 1 input on touch event for the spawned objects.

    >

    >

    > ok. that sounds interesting. Are you talking of something like Sprites with different UID's ?

    > You cant creat them if you hold control while you drag a sprite.

    >

    > couldn't you use family variables then?

    >

    > and how would you go on with the movement events then?

    >

    > on "Buttons" touched (family)

    > ---> if player variable = 1 -> move player 1 to the left

    >

    > ?? could you explain?

    check the test page

    Its part of a game im making, I stripped of the other stuff, was quicker then rebuilding, lol

    Its an on screen login keyboard

    If you pres any key it appears in the top input box

    I added some compare stuff, and see what happens if you press x,y or z

    Capx

  • yeah, look at my game quickshot.

    has that kind of game play :)

    while making it I actually had though about making an operation wolf clone :)

  • Is there some sort of option to detect the hosts requesting the game ?

    I believe there are quite some games in the arcade being routed to other arcades, none scirra, and I'd like to have a small detection in my apps placed here on scirra, simply to detect if its being run straight from scirra arcade, or from scirra arcade through a third party ...

    Depanding on this detection I'd like to show a banner on games played/hosted hotlinked through scirra.

    ie, games run from scirra clean shows no banners, through a third party it should.

  • Your welcome.

    One of the things I'm currently liking to my approach is that I can set options/events/actions for each spawned textbox too. :)

    Just imagine a score list, with your score standing out, blinking or bigger font etc