qwiktags's Forum Posts

  • joe

    The plugin sounds quite handy...I'll play around with it and see what I come up with

    Kyatric

    Thanx for the AJAX suggestion

    Ugotsta

    Thanx for the script and input

  • Kyatric

    I suppose AJAX is what I am looking for...since u can effect C2 content from external files and scripts using AJAX would it be possible to call an external script that, for the sake of this hypothetical question, checks the orientation of a mobile device and returns the information back to C2?

  • I really don't have any real specific ideas, but i have had the thought for sometime...is it possible for C2 to make external calls from within the game to a JQuery or JavaScript and have it effect the game?

    Just curious....

  • Thanx...I'll give it a shot

    I also tried moving the random(3)+1 line to block 3 and the result was the same (nothing registers)

    I'll post the capx anyway later today

  • Sorry guys. I do apologize for my oversite (it was a wee bit early/late when I made the post)

    Here is the quick and dirty version of what is going on

    (this works just fine)

    global variable = 0

    global variable2 = 0

    System -> every random(5)+2 seconds --> spawner1...spawn sprite

                                                                           set sprite.Y to random (300)+20

                                                                           set global variable2 = 1

                                                                           do more stuff..

    (this part gets glitchy)**

    System -> every random(15)+5 sec --> spawner2 spawn sprite2

                 -> global variable2=1                 system set global variable to random(3)+1 **(this part does not register)

                                                                    set sprite2.Y to random (300)+20 (works fine)

                                                                    ( the remaining code in this block works fine)...

                                                                    system set global variable2 =0

    system -> global variable = 1 --> spwaner3 spawn sprite3

                                                           do stuff

    (nothing happens in this block because there is no value generated for global variable which could be 1,2 or 3)

    I hope this helps, if not I'll post the capx later on today

  • the random(x) event has been a bit quirky...not sure if this a bug or just a random anomaly

    random(x) works in 1 part of my code but doesn't work in another

    when i open a new doc and enter the same code it works fine...is this a problem with the current project or is it just a very "random" glitch

    ???

    i'd rather not create an entirely new project just to clear up 2 lines (albeit vital) of code

  • Thanx. I'll try them both out later today

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • how do i get a sprite to follow the mouse with some sort of lag

    i know this works, but it is very rigid:

    system -> every tick --> set sprite Y to Mouse.Y

    any suggestions on how to get the sprite to lag behind the mouse a bit and when the movement stops the sprite "settles" into position

    ???

  • Kewlbeanz thanx Ize

  • So..."stack" sprites, but where does the sprite stacking occur? In the animation editor or on the game layout?

  • Not sure about desktop, but for mobile devices you can implement a version of the google bookmark bubble to pops up and prompts users to add the page to the homescreen of your mobile device

  • Just curious, is it possible to have a single sprite with multiple collision zones?

  • Kyatric

    With that being said, is there a way to create a "dynamic" array?

    Or,

    Create a static array

    Move the mouse-> populate the array & count each set of coordinates

    For loop to cycle thru the array to move the sprite

    ??? (seems like a lot of unnecessary coding...not sure)

  • How can I make a spirite move in a sine wave manner?

  • Is there a way to get a sprite to follow a mouse or touch gesture?

    Ex.

    if I draw a "c" shape on screen with the mouse or mobile touch, then the spirite should follow the path of Thr shape created

    (this in theory I assume should move a sprite at an angle in a straight line)

    Touch -> on touch --> set spriteStart.X to Touch.X

                                        set spriteStart.Y to Touch.Y

    Touch -> on release --> set spriteEnd.X to Touch.X

                                             set spriteEnd.Y to Touch.Y

    Sprite -> move --> sprite.X = spriteEnd.X-spriteStart.X

                                   sprite.Y = spriteEnd.Y-spriteStart.Y

                                   Move at angle (sprite.X, sprite.Y)

    ????