Title says it all. Perhaps my final contribution to the Construct community.
Download link:
dl.dropboxusercontent.com/u/52670878/Simple%20grid%20movement.cap
I challenge any more experienced users to achieve this mechanism with less events than me(12).
If you want an object to fly like an arrow, you could either use the bullet behavior or the physics behavior and apply a force with it.
Please try to be more specific in your requests. What exactly do you mean by "arrow physics"?
Here is something I made quickly: dl.dropbox.com/u/52670878/custom%20platform%2Bsolid.cap
It probably has glitches, but you should get the general idea...
It depends on your laptop. Try pinching the touchpad, or holding crtl and sliding across the right side of it. If that doesn't work, look for touchpad zoom options in the control panel.
Develop games in your browser. Powerful, performant & highly capable.
You could rotate towards the angle at which an object is moving by using sine and cosine.
Here: dl.dropbox.com/u/52670878/AutoRotate%20with%20Custom%20Behavior.cap
Hopefully, that is what you wanted.
To pick a single object you could use the picking conditions.
Add this additional condition below the existing one in event #10:
Sprite 5: Pick closest to: Sprite.ImagePointX(1), Sprite.ImagePointY(1)
I can't figure out why this phenomenon happens but an offset based on speed seems to fix it.
Here: dl.dropbox.com/u/52670878/RotDebug%20fix.cap
Why do you use separate objects as the eyes? Just have them drawn on the head sprite itself.
Sorry about that...I reuploaded the game and posted the cap, in case anyone wants to examine it.
Here's another idea:
Always -> Subtract 0.1 from Enemy('Reload')
Enemy('Reload')is less than 0 -> Enemy:Spawn bullet
Set Enemy('Reload') to random(2.0)
It should randomize the shooting pattern for each enemy independently.
I made a fix for you: dl.dropbox.com/u/52670878/robotfix.cap
Using the abs() built in function I cut the number of events in half.
Well that was fast! Thanks newt.
Member since 17 Aug, 2011