lamar's Forum Posts

  • Yes, can anyone confirm it's OK for them now?

    Does not appear to be working Tom.

    Got this error message after upload:

    Game screen shows same server error and game update and old version not coming up:

  • lamar, thanks.

    I guess I am being kind of picky but I want to stay away of using "wait 0.1" etc. stuff, since I want really responsive and crisp implementation.

    I am already using variables to store last position and using that to calculate the correct angle. That works pretty well too. I think I have to find some way to store the last position (just before collision) to prevent "angle of motion" updating to 0.

    Well if you can click faster than 0.1 seconds you have some fast reactions lol!

    You can remove those and they were put in for using tap and I forgot to take them out. Runs fine without them.

    Anyway, what I gave you works and use it if you want or not. Have a good day!

  • Please keep posts civil.

    lamar

    Never use the term 'fail' on a user, especially one requesting help. Not pleasant or polite.

    OK I edited it but to be clear that response was to Gameglaux not the OP that was looking for help and Gameglaux used a false scenario that would only confuse the OP more.

    I was trying to explain the different uses of tap and double tap when Gameglaux decided to jump in and argue with a false scenario.

    Sorry if I was too rough on ya Gameglaux!

  • >

    > > lamar using those triggers: make a sprite destroy itself on a single tap, but flash on a double tap

    > >

    >

    > Now think real hard....

    >

    > If you destroy the sprite you double tap you sure as hell can't tap it again to make it flash.

    >

    > Just like I asked why you would double tap a sprite already set to double tap?

    >

    > Nice try but fail!

    >

    > Try this:

    >

    > https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

    >

    Lamar, row number 2 " double tap on sprite4" will NEVER run. If you delete that row nothing will changes

    Well I gave you the CAPX and it obviously works and I am in no mood to argue.

    I gave you TWO ways to do the same thing depending on what you want that sprite to do. Double tap and tap have specific purposes depending on events used. Take your pick and have a good day!

  • lamar, sorry I was not precise enough.. What i need is the angle of motion, which in this case is not the same as the actual "heading" or the objectAngle. Also I am not using bullets etc for this, for several reasons.

    OK when you do not use direction motion or bullet motion the angle will always be 0 unless you change it in the layout.

    You need two variables and one to store the angle and one to change the angle of motion.

    That gives you the angle and you can use the variable to set angle from other events

  • lamar using those triggers: make a sprite destroy itself on a single tap, but flash on a double tap

    Now think real hard....

    If you destroy the sprite you double tap you sure as hell can't tap it again to make it flash.

    Just like I asked why you would double tap a sprite already set to double tap?

    Nice try!

    Try this:

    https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

  • UPDATE: Tom says he has fixed game updates in the arcade so give it a try.

    Tom wrote:

    Arcade game updates should now be fixed, so should store uploads.

  • > Boy you guys are hard headed lol!

    >

    > Here is the CAPX and events:

    >

    >

    >

    > https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

    >

    > Tap and double tap when used as expected on a single event work perfectly to set a trigger.

    >

    > If you are using multiple events use singe tap with a wait to set the triggger variable.

    >

    > I use these all the time in my games guys!

    >

    Sorryl Lamar, but you have used "double tap" for one sprite (sprite4) , and "tap" for another - spriteread.

    I was trying to use both events for the same sprite

    Did you try the CAPX?

    You can use single tap as a register for double tap as that second use of events with the red sprite shows.

    Tap the red box once and it changes size. Double tap and it changes size again.

    I gave you BOTH examples so you can use which ever works for your game.

    Works like a dream!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for your answers guys. lamar object angle won`t work since sprite can move other directions that it is facing...

    I am not following you?

    Of course the object can move other directions but you said you wanted to determine what angle the object is "heading" and that event will give you the objects current angle for objects without behaviors. If you are using bullet or directions then you use those angles and a variable.

    You "I need to figure out a way to determine which direction / angle object is heading"

  • Boy you guys are hard headed lol!

    Here is the CAPX and events:

    https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

    Tap and double tap when used as expected on a single event work perfectly to set a trigger.

    If you are using multiple events use singe tap with a wait to set the triggger variable.

    I use these all the time in my games guys!

  • Dear lamar, you made the perfect capx to clearly show the opposite. So allow me to rest your case.

    Want a fresh coffee to make up ?

    I would say you simply don't understand the function of double tap and tap to set a variable trigger but maybe can't admit it?

    If you have already set a variable with double tap why would you double tap again.

    If you need to toggle between event actions use single tap and just toggle the variable.

    It is that simple!

  • Sorry for trowing something in your coffee.

    When pause = off ... A double tap will switch it on .. then off (after a short time).

    Clearly showing that the 'on tap' runs its actions, even when double tapped.

    The easy solution is in my example.

    WHY would you need to use double tap on the same object if double tap event is already running?

    If you need that use single tap and just toggle the variable.

    Tap and double tap are separate actions and used properly on the same sprite work as they are supposed to.

  • > No and there is my events using the same sprite with tap and double tap. It sets the variable to 1 on tap and 0 on double tap.

    >

    >

    Setting the variable is an action, not an event. The tap event runs every touch on that object. Double tap or single tap.

    That is why you use the variable to trigger the event!

  • I can't view your CAPX because I still have the older C2 version but this should work if you just need to know the angle of any sprite without behavior or with behaviors.

  • They are working on it.

    Tom wrote:

    "Having problems with arcade right now because we're using a huge amount of bandwidth (around 300GB a day). This was way more than we ever anticipated. As a result we've implemented Cloudflare CDN. This has created a few caching bugs here and there which I am fixing as they come up."

    I am sure that is probably also affecting the forum.