You could use a separate object for the slope and make it solid. Then detect when the player is on the slope with "player is overlapping slope an offset (0,1)" and move the player off the slope with "player: set x to player.X+1" to make it slide.
Develop games in your browser. Powerful, performant & highly capable.
Ok, I fixed that bug and tweaked it a bit. Re-download from first post.
You do not have permission to view this post
It won't work on the base layer since it doesn't have any transparency, but if you add another layer it should work.
It's working for me on two different computers, Firefox and Chrome.
What is it that isn't working? Does the sprite draw with no outline or does the game not load?
Does the sprite you apply it to have any transparency? The outline is applied between transparent and opaque pixels, but it doesn't draw beyond the sprites quad so a solid color sprite will have no visible outline.
I did something similar to what you're describing for a top view game:
http://www.scirra.com/forum/roguelike-map-system-untiled_topic51967_post327292.html?KW=capx+rooms#327292
This works.
Set Text to tokenat(replace("1,2,3,4,5,", Text.Text & ",", ""),int(random(4)), ",")
#This is how you save a object refrence
System.Create("Sprite", 1, 200,200)
RefToFirstSprite = SOL.Sprite[0]
#Then you can destroy it later like so.
RefToFirstSprite.Destroy()
You could use the listbox object it specializes in a scrolling list of text.
If you still want to implement it yourself with events here is a example:
http://dl.dropbox.com/u/5426011/examples15/scrollbar.cap
Here are a few other examples of a scrollbar widgit:
http://69.24.73.172/scirra/forum/viewtopic.php?f=8&t=5343
http://69.24.73.172/scirra/forum/viewtopic.php?f=8&t=3809
and here is a uncommented cap of an advanced scrollbar.
http://www.scirra.com/forum/utility-2d-array-editor_topic41701.html
For a smooth transition between colors you can use lerp on each color component.
If you convert from rgb color to another color space before lerping you can get different results.
Top down: rgb, ryb, hsl
<img src="http://dl.dropbox.com/u/5426011/examples15/cool.png" border="0" />
Instead of using 3 and 5 in Random(3,5), use two global variables and just set them depending on the level.
You could use a sprite with a frame per letter.
Then with events you could do a loop to read each letter eg mid(Text.Text, loopindex, 1).
Finally once you get a letter you can convert it to a frame number. ex find("abcdefghijklmnopqrstuvwxyz", letter).
Here is a example I did a while back:
http://www.scirra.com/forum/suggestionsprite-font_topic44315_post277605.html#277605
Member since 15 Jun, 2009