Tumgik
#yspd
everydaygremlin · 1 year
Text
OBJ_PLAYER CODE
CREATE EVENT
xspd = 0 yspd = 0
move_spd = 4
sprite[RIGHT] = spr_player_right sprite[UP] = spr_player_up sprite[LEFT] = spr_player_left sprite[DOWN] = spr_player_down
face = LEFT
STEP EVENT
//------------{+} Key check {+}------------
right_key = keyboard_check(vk_right) left_key = keyboard_check(vk_left)
//------------{+}Get xspd + yspd{+}------------
xspd = (right_key - left_key) * move_spd yspd = 0
//------------{+} Pause {+}------------ if instance_exists(obj_pauser) { xspd = 0 }
//------------{#} Set sprite {#}------------
mask_index = sprite[LEFT]
if yspd == 0 { if xspd > 0 {face = RIGHT} if xspd < 0 {face = LEFT} if xspd < 0 && face = RIGHT {face = LEFT} if xspd > 0 && face = LEFT {face = RIGHT} }
if xspd == 0 { if yspd > 0 {face = DOWN} if yspd < 0 {face = UP} if yspd > 0 && face = UP {face = DOWN} if yspd < 0 && face = DOWN {face = UP} }
sprite_index = sprite[face]
//------------{+} Collision {+}------------
if place_meeting(x + xspd, y, obj_wall) { xspd = 0 } if place_meeting(x, y + yspd, obj_wall) { yspd = 0 }
//------------{+} Move player {+}------------
x += xspd
//------------{#} Animate {#}------------
if xspd == 0 && yspd == 0 { image_index = 0 }
//------------{#} Depth {#}------------ depth = -bbox_bottom
IF THIS IS POSTED IGNORE THIS
6 notes · View notes
loveletterworm · 2 years
Text
new idea  what if instead of lerping the xspd and yspd values directly i do that  to the spd variable they work off of  this will either fix all of my problems or be the worst idea in history
4 notes · View notes
drowninnoodles · 2 years
Note
this is a create event for obj_player
/// @description variables // You can write your code in this editor xspd = 0 yspd = 0
move_spd = 1
sprite[RIGHT] = spr_player_right sprite[UP] = spr_player_up sprite[LEFT] = spr_player_left sprite[DOWN] = spr_player_down
face = DOWN
Nice
3 notes · View notes
Photo
Tumblr media
Still have a lot of Kuehs from last night! Having some for breakfast and also going to pass to all my neighbours 😋 . . . . . #girl ❤︎ #love ❤︎ #fashion ❤︎ #instagood ❤︎ #jewellery ❤︎ #ringgoals ❤︎ #singapore ❤︎ #tanzanite ❤︎ #tourmaline ❤︎ #sgjewellery ❤︎ #weddingband ❤︎ #weddingvows ❤︎ #instafashion ❤︎ #ringoftheday ❤︎ #weddingrings ❤︎ #finejewellery ❤︎ #jewellerygram ❤︎ #jewellerylove ❤︎ #engagementring ❤︎ #jewellerymaker ❤︎ #supportlocalsg ❤︎ #engagementrings ❤︎ #jewelleryaddict ❤︎ #uniquejewellery ❤︎ #ringsofinstagram ❤︎ #jewellerydesigner ❤︎ #jewelleryoftheday ❤︎ #singaporeinsiders ❤︎ https://www.instagram.com/p/CqHKBz-ysPD/?igshid=NGJjMDIxMWI=
0 notes
fleur-miu-blog · 6 years
Photo
Tumblr media
#YSPD #アマリリスのスイートピー #シャンペトルブーケ 9回目のレッスン 冬の空気をまとったシャンペトルブーケ #YUMISAITOParisDiplôme #yspd #desjoursdupetitbonheur #fleur #fleurs #fleurist #flowerstagru #paris #flower #bouquet #花束 #ブーケロン #お花好きと繋がりたい #季節のお花を束ねたい♪ #花のある暮らし #パリ https://www.instagram.com/p/BrtxVzYnRzM/?utm_source=ig_tumblr_share&igshid=30vwsqgaiuzn
0 notes
willbulmerarcade · 3 years
Text
LERPs for shuriken + spin
Tumblr media
The code at the top is a line of code, that references the custom event "Dead", which is a part of the time high score code in the third person character. This kills the player (you may have guessed) when the shuriken overlaps with the player.
When the shuriken has spawned, it moves constantly in one direction, and gets destroyed after 5 seconds, which is around the time it takes for it to reach the edge of the screen.
I have exposed the XSpd and YSpd variables, so that I don't have to go and make loads of separate spawners to spawn blocks that move in different directions. Instead, I can edit variables outside of the blueprint, and make them go in any direction I want as fast as I want.
Tumblr media Tumblr media
Afterwards, I created a timeline which lasted for 5 seconds, and a LERP rotator. I set a time within the timeline, telling it to last for 5 seconds, and over the 5 seconds, it will rotate in the specified direction at the specified value. Meaning, in this case, that over 5 seconds, it will caused my shuriken to rotate in the Z axis, making it look like a spinning shuriken.
0 notes
drowninnoodles · 2 years
Note
this is a step event for obj_player
/// @description movement code and sprite code
//------------{+} Key check {+}------------
right_key = keyboard_check(vk_right) left_key = keyboard_check(vk_left) up_key = keyboard_check(vk_up) down_key = keyboard_check(vk_down)
//------------{+}Get xspd + yspd{+}------------
xspd = (right_key - left_key) * move_spd yspd = (down_key - up_key) * move_spd
//------------{+} Pause {+}------------ if instance_exists(obj_pauser) { xspd = 0 yspd = 0 }
//------------{#} Set sprite {#}------------
mask_index = sprite[DOWN]
if yspd == 0 { if xspd > 0 {face = RIGHT} if xspd < 0 {face = LEFT} if xspd < 0 && face = RIGHT {face = LEFT} if xspd > 0 && face = LEFT {face = RIGHT} }
if xspd == 0 { if yspd > 0 {face = DOWN} if yspd < 0 {face = UP} if yspd > 0 && face = UP {face = DOWN} if yspd < 0 && face = DOWN {face = UP} }
sprite_index = sprite[face]
//------------{+} Collision {+}------------
if place_meeting(x + xspd, y, obj_wall) { xspd = 0 } if place_meeting(x, y + yspd, obj_wall) { yspd = 0 }
//------------{+} Move player {+}------------
x += xspd y += yspd
//------------{#} Animate {#}------------
if xspd == 0 && yspd == 0 { image_index = 0 }
//------------{#} Depth {#}------------ depth = -bbox_bottom
Fuck yeah thanks
3 notes · View notes
fleur-miu-blog · 6 years
Photo
Tumblr media
ダリアのブーケ・ド・マリエ 大好きな先生からの大切なお話 読みながら、実は涙が出てきた。 色んな場面に沁み入る。 #Une vie de fleurs #YUMISAITOParisDiplôme #yspd #desjoursdupetitbonheur #ブーケドマリエ #花嫁のブーケ #bouquetdemariée #fleur #fleurs #fleurist #flowerstagru #paris #flower #bouquet #花束 #ブーケロン #お花好きと繋がりたい #季節のお花を束ねたい♪ #花のある暮らし https://www.instagram.com/p/BpS6xhhnLr3/?utm_source=ig_tumblr_share&igshid=18pupdp9pgcfr
0 notes
fleur-miu-blog · 6 years
Photo
Tumblr media
YUMI SAITO Paris Diplôme コンポジション パニエに自然の一部を切り取って♪ #yspd #desjoursdupetitbonheur #fleur #fleurs #fleurist #flowerstagru #paris #flower #bouquet #花束 #ブーケロン #お花好きと繋がりたい #季節のお花を束ねたい♪ #花のある暮らし #パリスタイル #フラワーレッスン #fleurmiu #ご注文承ります。#お花のレッスン https://www.instagram.com/p/BpQ7xqAn1u5/?utm_source=ig_tumblr_share&igshid=132ywqcxk106l
0 notes
fleur-miu-blog · 6 years
Photo
Tumblr media
祭り当日 ころころ段取り変わる息子に振り回されながら無事お渡し完了! 花束どうやった?に対しての喜んでた!はきっと気持ちに対してかしら? でもよかった❤️ #YUMISAITOParisDiplôme #yspd #desjoursdupetitbonheur #ブーケドマリエ #花嫁のブーケ #bouquetdemariée #fleur #fleurs #fleurist #flowerstagru #paris #flower #bouquet #花束 #ブーケロン #お花好きと繋がりたい #季節のお花を束ねたい♪ #花のある暮らし #パリスタイル #フラワーレッスン #fleurmiu #ご注文承ります。#お花のレッスン https://www.instagram.com/p/BoqLnbCHWcn/?utm_source=ig_tumblr_share&igshid=k5wafruvfwj2
0 notes
fleur-miu-blog · 6 years
Photo
Tumblr media
2ヶ月ぶりのディプロマレッスンでした^ ^ 秋を感じるシャンペトルブーケ♪ YUMI SAITO Paris Diplôme #yspd #シャンペトルブーケ #fleur #fleurs #fleurist #flowerstagru #paris #flower #bouquet #花束 #ブーケロン #お花好きと繋がりたい #季節のお花を束ねたい♪ #花のある暮らし #パリスタイル #フラワーレッスン #fleurmiu #ご注文承ります。#お花のレッスン https://www.instagram.com/p/BoPw3J6nNro/?utm_source=ig_tumblr_share&igshid=qb0c6av38p2g
0 notes
fleur-miu-blog · 6 years
Photo
Tumblr media
YUMI SAITO Paris Diplôme バンダとカラーのブーケドマリエ #yspd #ブーケドマリエ #花嫁のブーケ #bouquetdemariée #fleur #fleurs #fleurist #flowerstagru #paris #flower #bouquet #花束 #ブーケロン #お花好きと繋がりたい #季節のお花を束ねたい♪ #花のある暮らし #パリスタイル #フラワーレッスン #fleurmiu #ご注文承ります。#お花のレッスン
0 notes
fleur-miu-blog · 6 years
Photo
Tumblr media
YSPDバラのコンポジション #yumisaitoparisdiplome #Diplôme #yspd #fleur #fleurs #fleurist #flowerstagru #paris #flower #bouquet #花束 #ブーケロン #お花好きと繋がりたい #季節のお花を束ねたい♪ #花のある暮らし #パリスタイル #フラワーレッスン #fleurmiu #ご注文承ります。#お花のレッスン #アレンジメント #コンポジション
0 notes
fleur-miu-blog · 6 years
Photo
Tumblr media
ディプロマレッスン前に隣のカフェへ 以前レッスンご一緒した同期の方をいきなりお誘いしました^ ^ たくさんおしゃべりして楽しかった〜 #ディプロマレッスン #YSPD #北浜 #隣のカフェ #次回はランチだ
0 notes
fleur-miu-blog · 6 years
Photo
Tumblr media
風がグッと冷たくなって ずっとあやしかったのですが 風邪です!風邪をひいてしまったようです。鼻がムズムズ のどがイガイガ 頭が痛い(ーー;) 今回 病院に早めに行ったので ひどくなりませんように^^; 本日ご注文いただいたお花♪ 今回は、白グリーンにポイントに秋の実物を少し コンポジションスペシャルでご用意させていただきました^ ^ #コンポジション #コンポジションスペシャル #fleur #fleurs #fleurist #flowerstagru #paris #flower #bouquet #花束 #ブーケロン #お花好きと繋がりたい #季節のお花を束ねたい♪ #花のある暮らし #パリスタイル #フラワーレッスン #fleurmiu #ご注文承ります。#お花のレッスン #YUMISAITOParisDiplôme #yspd #desjoursdupetitbonheur #風邪ひいた #頭痛い https://www.instagram.com/p/BpJSW5OnJ3a/?utm_source=ig_tumblr_share&igshid=s2vyffcv9lc2
0 notes
fleur-miu-blog · 6 years
Photo
Tumblr media
Yumi Saito Paris Diplôme 9回目のブーケドマリエ #YUMISAITOParisDiplôme #yspd #desjoursdupetitbonheur #ブーケドマリエ #花嫁のブーケ #bouquetdemariée #fleur #fleurs #fleurist #flowerstagru #paris #flower #bouquet #花束 #ブーケロン #お花好きと繋がりたい #季節のお花を束ねたい♪ #花のある暮らし #パリスタイル ↓ご覧ください。 http://coindenature .jugem.jp/?eid=55 https://www.instagram.com/p/Brz3ThZH6zZ/?utm_source=ig_tumblr_share&igshid=12pslhqqycf5y
2 notes · View notes