Search found 15 matches

Go to advanced search

by ItsRealGaming[R]
Thu Oct 03, 2019 5:59 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

ok nvm... This is solved... But how can I make a custom powerup without replace or fix the current power...?
by ItsRealGaming[R]
Tue Oct 01, 2019 8:50 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

How do I check for block collision? I use collision up/down/left/right but my custom npc stuck at ceiling slope (btw my custom is no gravity and speed = 0 with my old spawnAtDirection function)...
by ItsRealGaming[R]
Tue Sep 24, 2019 6:50 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

Lol that's no big deal... I believe lua can implement pretty much thing... In the future, it will be possible :3. Thank for helping
by ItsRealGaming[R]
Tue Sep 24, 2019 6:41 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

Awesome... So does this work with 32x64 slope? Or I have to make 2 different pieces? Also can I do the uppersolid or bottomsolid or leftsolid... lol I'm dumb... Or should I use NPC...?
by ItsRealGaming[R]
Tue Sep 24, 2019 6:01 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

Idk what about the frame... But let's move on something else... How would I make a custom block but it's a slope... Without replace a available one... Also, how would I make a one-way block?

P/s: How do I check for bumped block too?
by ItsRealGaming[R]
Thu Sep 19, 2019 8:23 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

Here: https://hastebin.com/zayehagige.sql The NPC 753 is just a cannonball with nogravity... It work perfectly... Thank god that hastebin formatting is work Btw the angle is based on GameMaker system ;3 Btw(2) I'm suck at animating... This code is based on the "Beck" enemies of Megaman 1... :3... Th...
by ItsRealGaming[R]
Thu Sep 19, 2019 8:14 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

Perfecto... I want to recreate some enemies, but I seem to have a problem with v.direction (frameStyle = 1)... if actionTimer == 0 then if v.direction == -1 then spawnAtDirection(753, v.x, v.y, 3, 180) end if v.direction == 1 then spawnAtDirection(753, v.x, v.y, 3, 0) end end Don't mind the spawnAtD...
by ItsRealGaming[R]
Thu Sep 19, 2019 5:50 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

I'm afraid this isn't goint to work when player is already "Big"... But no problem, I got a work around with this... Thank :3
by ItsRealGaming[R]
Wed Sep 18, 2019 4:30 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

How do I detect player pickup Mushroom, Flowers, Hammer Suit, Tanooki... I don't want to check for box around player... Sure this may be the only way but is there any easier way? P/s: Does this health code ok: function onTickEnd() if playerHealth >= 2 then if player.forcedState == 2 then player.forc...
by ItsRealGaming[R]
Tue Sep 17, 2019 1:46 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

Awesome... One more thing... How can I check player get hurt (powerstate 1)? I got the code: local playerHealth = 5 if playerHealth >= 2 then if player.powerup == 1 then player.powerup = 2 end else player.powerup = 1 end But it keep "squash" the player down... P/s: My combo code: if comboProgress <=...
by ItsRealGaming[R]
Mon Sep 16, 2019 6:51 pm
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

Awesome... Now... This may not be involve to Vector but how can I check for player input without messed up with others... You know the 7 Koopaling boss? I want to make a combo input attack like that... That look so cool... All I got is this: local disableInput = false function onKeyDown(keycode) if ...
by ItsRealGaming[R]
Mon Sep 16, 2019 8:29 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

A super dumb question pls....? Can I draw a line/graphic/background animation in Lua? In GameMaker studio, there is Draw event... How about Lua... Does SMBX 2.0 Engine contain this or I must use some API? For example... Can I draw a line and rotate it or cursor and rotate the "finger" of cursor/hand...
by ItsRealGaming[R]
Mon Sep 16, 2019 2:45 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

Ok thank alot... I will keep this topic for 2 purpose... Ask again and/or let's others watch to fulfill their dream... SMBX 2.0 Engine has a lot of potential... :3 Added in 7 hours 47 minutes 28 seconds: I made a boss based on a Cursor... It went perfect but I notice that the cursor is a single-life...
by ItsRealGaming[R]
Sun Sep 15, 2019 9:36 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Re: Shoot Bullets to player coordinate

LOL I spend my whole day try to implement the GameMaker Studio style because I'm used it for too long... Thank boi :3 Edit: Another question to avoid double post... (Non-related question) I notice that if I set speedX and speedY to an x value... With 8 bullets and changing the coding: local ball1 = ...
by ItsRealGaming[R]
Sat Sep 14, 2019 9:53 pm
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 29
Views: 2252

Shoot Bullets to player coordinate

As the title said... I want the code: local npc = NPC.spawn(arguments) npc.speedX = a npc.speedY = a to shoot at player position/coordinate... I got these function: function point_direction(x1, y1, x2, y2) local angle = math.deg(math.atan2(x2 - x1, y2 - y1)) if(angle < 0) then angle = angle + 360 en...

Go to advanced search

cron