≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
endless runner
Posted by:
(you are not logged in)
Enter the missing letter in: "In?ernational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Not played the game but another simple way I would do it is to add a vertical billboard to an empty scene, then add the "animate texture" effect, and apply the frames from a (looped) video clip animated texture.... https://pixabay.com/videos/neon-terrain-80-retro-abstract-21368/ Using this website... https://ezgif.com/video-to-jpg Just paste the video url, download the frames as a zip. [b]Scene/Map[/b] Attach/child the billboard to a static camera and adjust its position so it takes up the full screen. (0,0,-5) for position relative to camera. Then adjust image scale to fit the screen. [b]Character[/b] You can then place your animated character at the bottom/middle of the screen to give the illusion of endlessly running forwards. Use the arrow keys to move them left/right, use space to jump etc. [b]Game Play[/b] Then, for the gameplay, use the "at random intervals" action move obstacles (simple photos attached to other billboards will do) towards the player to jump over/duck/avoid etc. (You can hide all these objects behind the billboard until the are needed.) Place "on proximity" events on all the obstacles so that if the player hits them, a sound is played and health is deducted, level is restarted etc. [b]Score[/b] Use a 2D overlay to display the current score by Add a "every few seconds" event to the player - set variable "Score" +1. So while the player runs without hitting anything, he will generate +1 score. Then add an "update 2D overlay" (score) and add [b]Score:$Score$[/b] to display and update the Score. [b]Levels[/b] To swap levels, you could use the action "If variable (score) =100", make invisible "Billboard level 1", make visible "Billboard" Level 2", then just load different animated texture to the 2nd billboard (probably reduce the time between frames in the animation to make each level faster) and play some different music. To beat a level, you could add a photo off a finish-line to a billboard and a change level event attached to its proximity -you could do the same for health pickups/super-jump ability upgrade etc.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact