Joannesalfa's Recent Forum Activity

  • Yes, i noticed the differences between App Lab and XDK, when i used Test Anywhere on one of my games with my iPod Touch 4 and it shows black screen, i had no idea why.

    Also, i exported with directCanvas

  • It makes me wonder they could to fix Tiled Background plugin for appMobi, sometimes it shows missing tiles, there a workaround is using sprites instead of tiled background

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • PhoneGap isn�t designed to build a HTML5 Videogame with decent performance

  • How is possible that? look at this youtube.com/watch

  • btw, i found a documentation, well i don't see an overall sample, i think we should to use HTML div plugin that we can generate modules to get work with API and edit HTML to connect roar.io server

    roarengine.com/webapi

  • I support this thread, i would to learn how to integrate roar.io... actually i quite don�t understand at all.

  • try a 'on create' event for your patrol and make it make its own shadow object. Then every time a patrol is created itll make its own shadow without you havin to keep up with it. Just make sure you store the shadow object thats created with an instance var for that patrol so when the patrols deleted it can delete its shadow in an 'on destroy' event

    I've created another event "on destroy" with Pick nth, Instance patrol.IID that automatically destroys the shadow container according to ROJOhound's container from CC code on C2.

    Also im curious about "On Created", would you like to make an code example? i'm sorry is quite hard to understand due to logic verb.

  • ROJOhound is the best programmer i�ve known on this forum, also Yann is the second place.

  • You can create the shadows with events. For the method I gave you just make sure that the number of shadows matches the number of patrol. If the number is less create another, and if it's more delete one.

    Another method would be to use an instance variable in the patrol to keep track of the UID of it's shadow.

    You can make them move out of sync with a Boolean instance variable and the wait action:

    +patrol: is NOT patrolling

    +for each patrol

    --- patrol: set patrolling to true

    --- wait random(2,4) seconds

    --- patrol: set angle of motion...

    --- patrol: set speed...

    --- wait 1 second

    --- patrol: stop

    --- patrol: set patrolling to false

    Of course you could alternatively use a variable to make a timer.

    Ok, i tought loop system can automatically generate quantity of sprites to each other sprites on the layout, actually it doesn?t and we should to do manual way like copy each sprite for other sprites.

    I implemented with your method about patrol and it worked like a charm. Thanks!

  • Also, i would like to know one more thing, how to make every patrols to wait for 2 or 4 seconds what they choose time before to move? i wouldn't to see these patrols walk in synchronization, it must be desynchronization.

  • 1. The system compare condition does no picking so place events 2-5 as sub-events of a "for each Patrol".

    2. Duplicate the shadow object in the layout so you have 3 instances. Replace event 6 with:

    +Every Tick

    --- Shadow: set position to Patrol

    It worked!   <img src="smileys/smiley1.gif" border="0" align="middle" />

    Thank you a lot!

    Does there no way to generate shadows according to how many enemies on a layout?

Joannesalfa's avatar

Joannesalfa

Member since 8 May, 2011

Twitter
Joannesalfa has 3 followers

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies