Log In  
Follow
Doop4wow
[ :: Read More :: ]

Cart #elmskeep111-0 | 2021-09-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1


Arrow keys control the character the mouse is used to interact
some minor bugfixes
major defense increases health bug fixed

P#97839 2021-09-26 06:50

[ :: Read More :: ]

function namer()
if e.name == 1 then print(rat,48,10)
end
end

P#97773 2021-09-25 05:40

[ :: Read More :: ]

Can someone please tell me how to change a map tile with a sprite over it because I can't figure it out
heres my code
--player
function make_player()
p={}
p.h=10
p.a=3
p.d=1
p.dead = false
p.x=8
p.y=8
p.tx=1
p.ty=1
end

function player_move()
p.tx = p.x/8
p.ty = p.y/8
if (btn(0)) then p.x = p.x - 8 end
if (btn(1)) then p.x = p.x + 8 end
if (btn(2)) then p.y = p.y - 8 end
if (btn(3)) then p.y = p.y + 8
end
end

function overlap(x,y)
if (btn(5)) and fget == 3 then mset(p.tx,p.ty,4)
end
end

P#97529 2021-09-19 05:24 ( Edited 2021-09-19 05:32)

[ :: Read More :: ]

--enemies
function make_enemies()
e1={}
e1.x=20
e1.y=10
e1.sprite=6
end

function move()
if e1.x >= 120 then move = false
if e1.x <= 10 then move = true
end
end
end
function move_enemies()
if move == true then e1.x = e1.x + 1
if move == false then e1.x = e1.x - 1
end
end
end
this code is not working it should work at the bigining it starts off true and when the enemy x is equile to 120 near the screen it turns to false making it go left

P#96408 2021-08-24 07:29 ( Edited 2021-08-26 09:40)